]> granicus.if.org Git - postgresql/commit
Run check_keywords.pl anytime gram.c is rebuilt.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Sep 2012 03:10:52 +0000 (23:10 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Sep 2012 03:12:39 +0000 (23:12 -0400)
commit55c1687a97c3c2b6cbf7c1b45830b49f03641908
tree07419cfb066b10daa6b91aa9689bfeb52b65c744
parent10bfe81deeb8dc2af2204dbeebf3dda62f1ae263
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.
src/backend/parser/Makefile
src/backend/parser/check_keywords.pl [moved from src/tools/check_keywords.pl with 81% similarity, mode: 0644]