Thread: pgsql: Run check_keywords.pl anytime gram.c is rebuilt.

pgsql: Run check_keywords.pl anytime gram.c is rebuilt.

From
Tom Lane
Date:
Run check_keywords.pl anytime gram.c is rebuilt.

This script is a bit slow, but still it only takes a fraction of the time
the bison run does, so the overhead doesn't seem intolerable.  And we
definitely need some mechanical aid here, because people keep missing
the need to add new keywords to the appropriate keyword-list production.

While at it, I moved check_keywords.pl from src/tools into
src/backend/parser where it's actually used, and did some very minor
cleanup on the script.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/55c1687a97c3c2b6cbf7c1b45830b49f03641908

Modified Files
--------------
src/backend/parser/Makefile          |    5 +-
src/backend/parser/check_keywords.pl |  230 ++++++++++++++++++++++++++++++++
src/tools/check_keywords.pl          |  244 ----------------------------------
3 files changed, 231 insertions(+), 248 deletions(-)