Re: FETCH in subqueries or CTEs

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: FETCH in subqueries or CTEs
Дата
Msg-id 50388FBB.1000600@ringerc.id.au
обсуждение исходный текст
Ответ на Re: FETCH in subqueries or CTEs  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 08/24/2012 10:31 PM, Tom Lane wrote:
> Craig Ringer <ringerc@ringerc.id.au> writes:
>> I didn't find a reasonable way to simply fetch a cursor into a (possibly
>> temporary) table, like:
>> INSERT INTO sometable FETCH ALL FROM somecursor;
> Why would you bother with a cursor, and not just INSERT ... SELECT
> using the original query?
I wouldn't. The context - and the reason it's mostly a matter of
curiosity, not something I care about - is that it arose out of
discussion elsewhere on how to work with pre-defined PL/PgSQL functions
that return multiple refcursors.

--
Craig Ringer


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

Предыдущее
От: Chris Angelico
Дата:
Сообщение: Re: run function on server restart
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Windows SIngle Sign On - LINUX Server