From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, Michael Glaesemann <grzm(at)seespotcode(dot)net>, Joe Conway <mail(at)joeconway(dot)com>, pgsql-patches(at)postgresql(dot)org, pgsql-docs(at)postgresql(dot)org |
Subject: | Re: [HACKERS] [PATCHES] Values list-of-targetlists patch for comments (was Re: |
Date: | 2006-08-09 16:22:42 |
Message-ID: | 20060809162242.GA19092@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-hackers pgsql-patches |
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(at)fetter(dot)org> http://fetter.org/
phone: +1 415 235 3778 AIM: dfetter666
Skype: davidfetter
Remember to vote!
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-08-09 17:07:30 | Re: [HACKERS] [PATCHES] Values list-of-targetlists patch for comments (was Re: |
Previous Message | Peter Eisentraut | 2006-08-09 15:16:32 | Re: During compiling sgml files, there is a error message... |
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2006-08-09 16:22:49 | Re: 8.2 features status |
Previous Message | Andrew Dunstan | 2006-08-09 16:17:44 | Re: Buildfarm failure on ecpg/test/pgtypeslib |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-08-09 16:44:00 | Plugins redux (was Re: [PATCHES] PL instrumentation plugin support) |
Previous Message | Zoltan Boszormenyi | 2006-08-09 15:42:01 | Re: IDENTITY/GENERATED columns |