473,811 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Seeking concise PL/pgSQL syntax diagram

I checked the 7.4 PL/pgSQL docs but couldn't find
a concise grammar description
e.g. a BNF diagram...is any such thing
available online ? I'm looking to possibly port a stored
procedure debugger I'm writing to support Pg.
(I'd prefer *not* to wade thru a lex/yacc definition)

TIA,
Dean Arnold
Presicient Corp.
www.presicient.com

Nov 12 '05 #1
2 2504
On Tue, Nov 18, 2003 at 11:24:33PM +0000, Dean Arnold wrote:
I checked the 7.4 PL/pgSQL docs but couldn't find
a concise grammar description
e.g. a BNF diagram...is any such thing
available online ? I'm looking to possibly port a stored
procedure debugger I'm writing to support Pg.
(I'd prefer *not* to wade thru a lex/yacc definition)
I don't think there is a grammer description in the documentation. If you
don't feel like wading through the yacc file, note that yacc can produce a
concise grammer summary as a side effect, so maybe just compiling with the
-g or -v options to yacc will produce output you can use.

Hope this helps,
--
Martijn van Oosterhout <kl*****@svana. org> http://svana.org/kleptog/ "All that is needed for the forces of evil to triumph is for enough good
men to do nothing." - Edmond Burke
"The penalty good people pay for not being interested in politics is to be
governed by people worse than themselves." - Plato


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/vAcdY5Twig3Ge+Y RAsZdAKCkpjgY/jSom5sFfSOSQQ/WW5mTAgCfQbma
wXl3Wrq2cVSe920 xKXHjcrg=
=C7a/
-----END PGP SIGNATURE-----

Nov 12 '05 #2
On Tue, Nov 18, 2003 at 11:24:33PM +0000, Dean Arnold wrote:
I checked the 7.4 PL/pgSQL docs but couldn't find
a concise grammar description
e.g. a BNF diagram...is any such thing
available online ? I'm looking to possibly port a stored
procedure debugger I'm writing to support Pg.
(I'd prefer *not* to wade thru a lex/yacc definition)
I don't think there is a grammer description in the documentation. If you
don't feel like wading through the yacc file, note that yacc can produce a
concise grammer summary as a side effect, so maybe just compiling with the
-g or -v options to yacc will produce output you can use.

Hope this helps,
--
Martijn van Oosterhout <kl*****@svana. org> http://svana.org/kleptog/ "All that is needed for the forces of evil to triumph is for enough good
men to do nothing." - Edmond Burke
"The penalty good people pay for not being interested in politics is to be
governed by people worse than themselves." - Plato


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/vAcdY5Twig3Ge+Y RAsZdAKCkpjgY/jSom5sFfSOSQQ/WW5mTAgCfQbma
wXl3Wrq2cVSe920 xKXHjcrg=
=C7a/
-----END PGP SIGNATURE-----

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9625
by: FET | last post by:
Hello, I am in a bit of a conflict here. I would like to know if the stored procedures that I write in PL/PGSQL to run on PostgreSQL 7.4.2 are ANSI compliant. The point of asking this question is whether my stored procedure needs to undergo a lot of change if I port it to some other database like Oracle or MSSQL Server. Thank you in advance, Best regards.
1
1794
by: Hema Sekhar | last post by:
Hi I am Hemasekhar K.P I am trying to replicae pgsql on REDHATLinux 8, but the site http://gborg.postgresql.org/genpage?replication_72install. is giving instructions on REDHATLinux 7, is there any site which gives instructions on how to replicate on REDHATLinux 8, Actually in postgresql.conf which is under /usr/local/pgsql/data/postgresql.conf, I added the following lines
1
8877
by: Clive Page | last post by:
What I'd like to do is use dblink to extract a few rows from a remote database and manipulate these within a function in pl/pgsql. Something like this: CREATE OR REPLACE FUNCTION find() RETURNS INTEGER AS ' DECLARE count INTEGER: myrec RECORD; BEGIN FOR myrec IN SELECT * FROM DBLINK(''select x,y from mytab'') as
1
4239
by: Maria | last post by:
Heya, I am doing some background reading about the database and i am a little bit confused, i would appreciated any help.... Assume been asked to draw the ER diagram for the following statement: "Many players play for a team but a player can play just in one team"
4
1839
by: Postgresql | last post by:
Hello, I am unable to get on many of the postgresql mailing lists. I usually get this message back with no attachment and no email comes afterwards with a confirmation. I've tried this over and over on multiple lists. After a while I was able to get on pgsql-admin...but it took a few tries. It's been a couple days now, so I'm assuming majordomo has had time to process my request.
5
366
by: Daniel Baughman | last post by:
My pgsql service keeps dieing and has a bunch of errors like this in the server log, eventually it stops giving these Warning: terminatin connection because of crash of another server process Detail: The postmaster has commanded this server process to roll back the current transaction and exit, because nother server process exited abnormally and possible corrupted shared memory Hint: ina moment you should be able to reconnect to the...
1
1885
by: the inquirer | last post by:
I am trying to create a function that creates a user and adds a row to a table. It produces no warnings or errors when I create the function but when I attempt to execute it I get a syntax error. I do not understand why this is happening. Any help would be greatly appreciated. SELECT create_author( 'name', 'username', 'password' );
7
2322
by: snpe | last post by:
Is it down ? regards ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match
0
1014
by: Reedick, Andrew | last post by:
<snip> I have a Perl background and have found the O'Reilly books to be useful. The Learning Python book (or whatever it's called) is good because it covers the paradigm shifts and potential gotchas that you won't even consider thinking about otherwise. Only downside is wading through the novice 'how to program' parts. The Cookbook is also good for getting 'standard' apps up and running quickly (meaning you know how to do it in Perl,...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10648
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10389
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9205
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6890
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.