From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Get rid of redundant production in plpgsql grammar. |
Date: | 2014-11-23 20:31:51 |
Message-ID: | E1Xsdp1-0004It-VQ@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Get rid of redundant production in plpgsql grammar.
There may once have been a reason for the intermediate proc_stmts
production in the plpgsql grammar, but it isn't doing anything useful
anymore, so let's collapse it into proc_sect. Saves some code and
probably a small number of nanoseconds per statement list.
In passing, correctly alphabetize keyword lists to match pl_scanner.c;
note that for "rowtype" vs "row_count", pl_scanner.c must sort on the
basis of the lower-case spelling.
Noted while fooling with a patch to de-reserve more plpgsql keywords.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/e2dc3f57726199408902ba87eaaf7b95d1223744
Modified Files
--------------
src/pl/plpgsql/src/pl_gram.y | 32 +++++++++++---------------------
1 file changed, 11 insertions(+), 21 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2014-11-24 09:12:27 | pgsql: Distinguish XLOG_FPI records generated for hint-bit updates. |
Previous Message | Andrew Dunstan | 2014-11-23 18:52:55 | pgsql: Fix memory leaks introduced by commit eca2b9b |