From: David Fetter <david@fetter.org>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgresql.org, Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gavin Sherry <swm@linuxworld.com.au>
Cc: Michael Glaesemann <grzm@seespotcode.net>
Cc: Joe Conway <mail@joeconway.com>
Cc: pgsql-patches@postgresql.org
Cc: pgsql-docs@postgresql.org
Subject: Re: [HACKERS] [PATCHES] Values list-of-targetlists patch for comments (was Re:
Date: Wed, 9 Aug 2006 09:22:42 -0700
Message-ID: <20060809162242.GA19092@fetter.org> (raw)
In-Reply-To: <200608091505.04383.peter_e@gmx.net>
References: <44B69778.5050104@dunslane.net>
<Pine.LNX.4.58.0608041040550.16622@linuxworld.com.au>
<969.1154659817@sss.pgh.pa.us>
<200608091505.04383.peter_e@gmx.net>
On Wed, Aug 09, 2006 at 03:05:02PM +0200, Peter Eisentraut wrote:
> Am Freitag, 4. August 2006 04:50 schrieb Tom Lane:
> > I'd like to see us refactor the docs as necessary to reflect that
> > idea. Peter is right that this needs some discussion in
> > syntax.sgml as well as in the reference pages --- but I'm still
> > not very clear on how the presentation should go.
>
> I'm beginning to think that VALUES might be a separate command after
> all.
What's below definitely bolsters that idea :)
postgres=# VALUES(1);
column1
---------
1
(1 row)
However, there are some oddities:
postgres=# SELECT * FROM (VALUES (1,2)) AS foo(bar,baz);
bar | baz
-----+-----
1 | 2
(1 row)
postgres=# (VALUES (1,2)) AS foo(bar,baz);
ERROR: syntax error at or near "AS"
LINE 1: (VALUES (1,2)) AS foo(bar,baz);
Does the SQL standard have anything to say about assigning identifiers
both to the entire VALUES() statement and to its columns when the
VALUES() statement is by itself?
Cheers,
D
--
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778 AIM: dfetter666
Skype: davidfetter
Remember to vote!
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-docs@postgresql.org
Cc: david@fetter.org, peter_e@gmx.net, tgl@sss.pgh.pa.us, swm@linuxworld.com.au, grzm@seespotcode.net, mail@joeconway.com, pgsql-patches@postgresql.org
Subject: Re: [HACKERS] [PATCHES] Values list-of-targetlists patch for comments (was Re:
In-Reply-To: <20060809162242.GA19092@fetter.org>
* 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