Re: Values list-of-targetlists patch for comments (was Re:

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Re: Values list-of-targetlists patch for comments (was Re:
Дата
Msg-id Pine.LNX.4.58.0608031523090.4590@linuxworld.com.au
обсуждение исходный текст
Ответ на Re: Values list-of-targetlists patch for comments (was Re:  (Joe Conway <mail@joeconway.com>)
Ответы Re: Values list-of-targetlists patch for comments (was Re:  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Docs and regression tests attached.

One slightly annoying thing is this:

---
regression=# declare foo cursor with hold for VALUES(1,2), (3, 4);
DECLARE CURSOR
regression=# declare foo2 cursor with hold for (VALUES(1,2), (3, 4)) as
foo(i, j);
ERROR:  syntax error at or near "as"
LINE 1: ...e foo2 cursor with hold for (VALUES(1,2), (3, 4)) as foo(i, ...
---

Now, we can just rewrite the second query as:

---
declare foo2 cursor with hold for select * from (VALUES(1,2), (3, 4)) as
foo(i, j);
---

but it's not immediately obvious. Not worth busting up the grammar for it,
though. And, it's not spec.

Gavin

Вложения

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

Предыдущее
От: Andreas Seltenreich
Дата:
Сообщение: GIN vs. statistics collector
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Values list-of-targetlists patch for comments (was Re: