Re: ecpg & 8.3 -> 8.4 migration - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: ecpg & 8.3 -> 8.4 migration
Date
Msg-id 19966.1258761731@sss.pgh.pa.us
Whole thread Raw
In response to ecpg & 8.3 -> 8.4 migration  (Bosco Rama <postgres@boscorama.com>)
Responses Re: ecpg & 8.3 -> 8.4 migration
Re: ecpg & 8.3 -> 8.4 migration
List pgsql-interfaces
Bosco Rama <postgres@boscorama.com> writes:
> According to the PG docs 'server' is a *non-reserved*
> keyword.  Does ecpg treat it as a reserved word?

Upon poking around in the ecpg sources, I discover that it has its own
list of "unreserved" keywords and pays no attention whatsoever to the
core grammar's unreserved_keyword list.  I can hardly find words to
express my dissatisfaction with that.  The unreserved_keyword list might
not be the single most-likely-to-change production in the core grammar,
but it's got to be right up there in the top two or three.  This little
shortcut means that all the work done last year to generate the ecpg
grammar from core was practically useless --- we still have to worry
about manually maintaining the ecpg grammar any time we change core.

This has *got* to be fixed.  The lack of obvious feedback about keywords
not included in any keyword list means that manual maintenance is
guaranteed to fail, as indeed it's already done, per this report.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: Bosco Rama
Date:
Subject: ecpg & 8.3 -> 8.4 migration
Next
From: Michael Meskes
Date:
Subject: Re: ecpg & 8.3 -> 8.4 migration