pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: milimeter@163.com, PostgreSQL Development <pgsql-hackers@postgresql.org>
Subject: Re: [GENERAL] Problem about pgsql's column alias
Date: Wed, 16 Apr 2003 10:16:49 -0400
Message-ID: <17738.1050502609@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0304160142100.3722-100000@peter.localdomain>
References: <Pine.LNX.4.44.0304160142100.3722-100000@peter.localdomain>

Peter Eisentraut <peter_e@gmx.net> writes:
> Allowing column aliases without AS would break nothing.

... except postfix operators, and whatever else happens to get caught in
the crossfire.  And we'll still get complaints because it only works for
identifiers, not for keywords.

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.

			regards, tom lane




view thread (11+ messages)  latest in thread

Message-ID: <17738.1050502609@sss.pgh.pa.us>
Permalink:  ../17738.1050502609@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17738.1050502609@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter_e@gmx.net, pgsql-hackers@postgresql.org
  Subject: Re: [GENERAL] Problem about pgsql's column alias
  In-Reply-To: <17738.1050502609@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox