Skip site navigation (1) Skip section navigation (2)

Keyword list sanity check

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Keyword list sanity check
Date: 2009-04-28 08:33:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I wrote a little perl script to perform a basic sanity check to keywords 
in gram.y and kwlist.h. It checks that all lists are in alphabetical 
order, all keywords present in gram.y are listed in kwlist.h in the 
right category, and conversely that all keywords listed in kwlist.h are 
listed in gram.y.

It found one minor issue already:

$ perl src/tools/
'SCHEMA' after 'SERVER' in unreserved_keyword list is misplaced

SERVER is not in the right place in gram.y, it should go between 
SERIALIZABLE and SERVER. I'll fix that.

I'll put this into src/tools. It's heavily dependent on the format of 
the lists in gram.y and kwlist.h but if it bitrots due to changes in 
those files, we can either fix it or just remove it if it's not deemed 
useful anymore.

   Heikki Linnakangas

Description: application/x-perl (4.7 KB)


pgsql-hackers by date

Next:From: Greg StarkDate: 2009-04-28 08:49:12
Subject: Re: Keyword list sanity check
Previous:From: higeponDate: 2009-04-28 08:32:14
Subject: Re: Extra cost of "lossy mode" Bitmap Scan plan

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group