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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Run check_keywords.pl anytime gram.c is rebuilt.
Date: 2012-09-27 03:12:45
Message-ID: E1TH4Wr-0006GS-C5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2012-09-27 19:20:09 pgsql: Have pg_terminate/cancel_backend not ERROR on non-existent proce
Previous Message Peter Eisentraut 2012-09-27 02:51:18 pgsql: pg_upgrade test: Disable fsync in initdb and postgres calls