Re: [GENERAL] Problem about pgsql's column alias

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [GENERAL] Problem about pgsql's column alias
Date: 2003-05-15 20:04:11
Message-ID: Pine.LNX.4.44.0305152059200.2756-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-interfaces pgsql-jdbc

Tom Lane writes:

> > Allowing column aliases without AS would break nothing.
>
> Now I'll admit that the postfix-operator issue is probably a red
> herring, since "SELECT a + b, ..." should get interpreted as infix +
> in any case. But I think there are other side-effects we have not
> fully analyzed yet. The one-line grammar hack was not intended to
> be actually applied, right? Let's see a complete proposal.

I have analyzed the all the grammar conflicts that the optional AS would
cause. The real killer were these two clauses:

expr ISNULL
expr NOTNULL

I don't know how to resolve that without making ISNULL and NOTNULL more
reserved than any other word, which seems unattractive.

(The only two other areas of conflict where postfix operators and trailing
multiword type names in ::-style type casts, which we already talked
about.)

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Suresh Krishna 2003-05-15 20:10:54 contrib rpm
Previous Message Adam Sherman 2003-05-15 19:53:58 Re: Index Types

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-05-15 20:13:31 Re: Win32, compiles, under, MinGW/Msys!
Previous Message Kurt Roeckx 2003-05-15 19:34:31 Re: Win32, compiles, under, MinGW/Msys!

Browse pgsql-interfaces by date

  From Date Subject
Next Message Vladimir Gomez 2003-05-15 21:26:45 New user
Previous Message Tim Woodall 2003-05-15 16:23:23 Bug in ODBC driver doing UPDATES and DELETES

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter Royal 2003-05-15 20:22:12 [PATCH] Fix COLUMN_SIZE and NUM_PREC_RADIX in metadata
Previous Message Barry Lind 2003-05-15 15:56:03 Re: Connections performance is reduced