473,395 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 2472
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+YRAsZdAKCkpjgY/jSom5sFfSOSQQ/WW5mTAgCfQbma
wXl3Wrq2cVSe920xKXHjcrg=
=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+YRAsZdAKCkpjgY/jSom5sFfSOSQQ/WW5mTAgCfQbma
wXl3Wrq2cVSe920xKXHjcrg=
=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
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...
1
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...
1
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...
1
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...
4
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...
5
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...
1
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....
7
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.