pgsql: Get rid of redundant production in plpgsql grammar.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Get rid of redundant production in plpgsql grammar.
Дата
Msg-id E1Xsdp1-0004It-VQ@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Fix memory leaks introduced by commit eca2b9b
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Distinguish XLOG_FPI records generated for hint-bit updates.