From: Kevin Brown <kevin@sysexperts.com>
To: PostgreSQL Development <pgsql-hackers@postgresql.org>
Subject: Re: [GENERAL] Problem about pgsql's column alias
Date: Mon, 14 Apr 2003 17:35:18 -0700
Message-ID: <20030415003518.GZ1833@filer> (raw)
In-Reply-To: <10849.1050339655@sss.pgh.pa.us>
References: <Pine.LNX.4.44.0304141455000.1919-100000@peter.localdomain>
<10849.1050339655@sss.pgh.pa.us>
Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > Tom Lane writes:
> >> AS is not optional in Postgres, and will never be so unless we choose to
> >> drop support for postfix operators, which I consider an unlikely choice.
>
> > Well, we could drop the support for postfix operators in aliasing clauses
> > that omit the AS.
>
> I think it would be a bad idea in any case; it would mask errors too
> easily. For example, you meant to say "SELECT a + b, ..." but wrote
> "SELECT a b, ...". Or how about this:
> SELECT 'foo'::character varying
> Is "varying" an alias or part of the type name?
Shouldn't we be deprecating the use of :: in favor of the SQL-standard
CAST()?
--
Kevin Brown kevin@sysexperts.com
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: kevin@sysexperts.com, pgsql-hackers@postgresql.org
Subject: Re: [GENERAL] Problem about pgsql's column alias
In-Reply-To: <20030415003518.GZ1833@filer>
* 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