Re: docs: WITH queries and VALUES

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: docs: WITH queries and VALUES
Дата
Msg-id 1600.1334239402@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: docs: WITH queries and VALUES  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> * Magnus Hagander (magnus@hagander.net) wrote:
>> with_query_name [ ( column_name [, ...] ) ] AS ( select | insert |
>> update | delete )
>> Should that list that you can use values as well? Or is it something
>> we generally consider "wherever select works you can use values"?

> TABLE also works there, and here:

Well, "TABLE foo" is defined as a shorthand for "SELECT * FROM foo",
so ISTM it's not too surprising that you can use it wherever you
can use SELECT.  I'm not sure that people have a similar view of
VALUES though.  It might be worth adding VALUES to the WITH syntax.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Why can't I use pgxs to build a plpgsql plugin?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Last gasp