On Fri, 4 Aug 2006, Peter Eisentraut wrote:
> Gavin Sherry wrote:
> > What do we want to do about documenting:
> >
> > regression=# values(1);
>
> Out of curiosity, according to what theory should that be allowed?
I asked this too. Tom pointed this out (I'd give the URL if I could find
it on archives):
--
You bet. VALUES is parallel to SELECT in the SQL grammar, so AFAICS
it should be legal anywhere you can write SELECT.
The basic productions in the spec's grammar are respectively
<query specification> ::=
SELECT [ <set quantifier> ] <select list>
<table expression>
and
<table value constructor> ::=
VALUES <row value expression list>
--
which seems to be the case from my reading of the spec.
Gavin