Refactor CREATE/ALTER DATABASE syntax so options need not be keywords.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Jul 2014 23:02:21 +0000 (19:02 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Jul 2014 23:02:21 +0000 (19:02 -0400)
commit15c82efd6994affd1d5654d13bc8911a9faff659
treeeff2b12a3ac0e9b57dabcef80f2379dbfa549772
parent2e8ce9ae46d15b2bfd34c2d53193da9858d3471a
Refactor CREATE/ALTER DATABASE syntax so options need not be keywords.

Most of the existing option names are keywords anyway, but we can get rid
of LC_COLLATE and LC_CTYPE as keywords known to the lexer/grammar.  This
immediately reduces the size of the grammar tables by about 8KB, and will
save more when we add additional CREATE/ALTER DATABASE options in future.

A side effect of the implementation is that the CONNECTION LIMIT option
can now also be spelled CONNECTION_LIMIT.  We choose not to document this,
however.

Vik Fearing, based on a suggestion by me; reviewed by Pavel Stehule
src/backend/commands/dbcommands.c
src/backend/parser/gram.y
src/include/parser/kwlist.h