Re: Why lower's not accept an AS declaration ?

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Why lower's not accept an AS declaration ?
Дата
Msg-id
19901.1061266808@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Why lower's not accept an AS declaration ? Hervé Piedvache <herve@elma.fr>
Re: Why lower's not accept an AS declaration ? Martijn van Oosterhout <kleptog@svana.org>
Re: Why lower's not accept an AS declaration ? Darko Prenosil <darko.prenosil@finteh.hr>
Re: Why lower's not accept an AS declaration ? Darko Prenosil <darko.prenosil@finteh.hr>
Re: Why lower's not accept an AS declaration ? Hervé Piedvache <herve@elma.fr>
Re: Why lower's not accept an AS declaration ? Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Why lower's not accept an AS declaration ? Hervé Piedvache <herve@elma.fr>
Re: Why lower's not accept an AS declaration ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Why lower's not accept an AS declaration ? Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Why lower's not accept an AS declaration ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Why lower's not accept an AS declaration ? Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Why lower's not accept an AS declaration ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Why lower's not accept an AS declaration ? Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Why lower's not accept an AS declaration ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Why lower's not accept an AS declaration ? Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Why lower's not accept an AS declaration ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Why lower's not accept an AS declaration ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Why lower's not accept an AS declaration ? Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Why lower's not accept an AS declaration ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Why lower's not accept an AS declaration ? Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Why lower's not accept an AS declaration ? Dennis Gearon <gearond@cvc.net>
Re: Why lower's not accept an AS declaration ? Bruno Wolff III <bruno@wolff.to>
Re: Why lower's not accept an AS declaration ? Ian Barwick <barwick@gmx.net>
Re: Why lower's not accept an AS declaration ? Joe Conway <mail@joeconway.com>
I said:
> After reading over the spec again I finally realized the significance of
> this bit:

>               i) Let X be any  directly contained in K(i).
>              ii) If X does not contain an explicit  or
>                  , then K(i) shall be a  that
>                  shall be equivalent to the name of exactly one column of
>                  ST.

Wait a second ... this is a classic case of reading what you expected
rather than what's there.  I thought that (ii) said "If X does not ...
then X shall be ..." but that's not what it says --- the "then" says
that the whole sort-key K(i) must be an output-column name.

In other words, SQL99 does not allow expressions over output-column
names.  An output-column reference can only appear as a simple name
(same as SQL92, and same as what we allow).  SQL99 allows expressions
over input-column names ... but only if the expressions use
fully-qualified input-column names.

This last is such a stupid restriction that I can't believe I'm reading
it right; is it just too late at night for me?

If I am reading it right, then we already support every case that is
legal per SQL99, and more besides.

			regards, tom lane
В списке pgsql-general по дате отправления
От: Dustin Sallings
Дата:
Сообщение: Re: Simulating sequences
От: Dustin Sallings
Дата:
Сообщение: Re: Example Database
FAQ