Re: OUTER keyword

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: OUTER keyword
Date: 2011-02-22 15:22:59
Message-ID: 29643.1298388179@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Tue, Feb 22, 2011 at 10:10 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> I don't see a good reason to change it. The SQL standard is perfectly
>> clear that OUTER is a fully reserved word.

> My vote would be to change it. We don't normally reserve keywords
> unnecessarily.

Well, we don't like *upgrading* keywords without real good reason,
but OUTER has had its current classification since forever. The
argument for trying to downgrade it was to avoid breaking a plpgsql
function that used to work, but I don't have a lot of sympathy for
that. There are any number of cases where you used to be able
to get away with using reserved words as plpgsql variable names and
now cannot, and most of them are not going to be fixable like this.

The scenario that concerns me is that some future SQL spec addition
uses OUTER in such a way that it has to be reserved again, which
isn't going to bother the committee any since they already think
it's reserved. Then we have to upgrade it, and all we've accomplished
is to encourage people to write unportable, non-future-proof code.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2011-02-22 15:36:23 Re: SR standby hangs
Previous Message Tom Lane 2011-02-22 15:15:07 Re: Void binary patch