Keyword list sanity check

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Keyword list sanity check
Дата
Msg-id 49F6BF58.8080700@enterprisedb.com
обсуждение исходный текст
Ответы Re: Keyword list sanity check  (Greg Stark <greg.stark@enterprisedb.com>)
Re: Keyword list sanity check  (David Fetter <david@fetter.org>)
Re: Keyword list sanity check  (Laurent Laborde <kerdezixe@gmail.com>)
Список 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/check_keywords.pl
'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
   EnterpriseDB   http://www.enterprisedb.com

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: higepon
Дата:
Сообщение: Re: Extra cost of "lossy mode" Bitmap Scan plan
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Keyword list sanity check