Re: Inline PL/pgSQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: David Fetter <david(at)fetter(dot)org>, "Jonah H(dot) Harris" <jharris(at)tvi(dot)edu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Inline PL/pgSQL
Date: 2005-05-10 03:20:15
Message-ID: 4069.1115695215@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Neil Conway <neilc(at)samurai(dot)com> writes:
> BTW, this is a little off-the-wall, but one interesting idea to help SQL
> and PL/foo integration would be to replace the bison grammar for SQL
> with a hand-written recursive descent parser.

Ick. I gave up hand-written RD parsers twenty-five years ago. They are
tedious to write, error-prone (due to the utter lack of any checking
that what you wrote embodies the syntax you meant), less flexible than
LALR(1), and generally have few redeeming social advantages.

Which is not to say that plpgsql in its current implementation isn't
mighty ugly too. I'd dearly love to find a better solution ... but
"throw away the parser generator" isn't a better solution.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2005-05-10 03:21:26 Re: [HACKERS] read-only database
Previous Message Satoshi Nagayasu 2005-05-10 03:18:10 Re: [HACKERS] read-only database