Re: Cursor Example Needed

Поиск
Список
Период
Сортировка
От Perry Smith
Тема Re: Cursor Example Needed
Дата
Msg-id C74C807F-508D-4807-9831-FCFB24E39C6D@gmail.com
обсуждение исходный текст
Ответ на Re: Cursor Example Needed  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: Cursor Example Needed  (Adrian Klaver <adrian.klaver@gmail.com>)
Список pgsql-general
On Oct 28, 2013, at 4:11 PM, Merlin Moncure <mmoncure@gmail.com> wrote:

> On Mon, Oct 28, 2013 at 4:06 PM, Perry Smith <pedzsan@gmail.com> wrote:
>> When I execute the SELECT statement directly I get:
>>
>> psql:table.sql:28: out of memory for query result
>
> psql will do this automatically if you tell it to:
> http://doginpool.blogspot.com/2011/11/retrieving-large-resultsets-from.html
>
> cursors can work with your code, but they need participation from the
> client side.  basically you stage the cursor then repeatedly FETCH
> until done.

Ok.  I'll try that.  I'm still curious how to do it using cursors if anyone wants
to provide a sample.

Thank you,
Perry


Вложения

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

Предыдущее
От: Robert James
Дата:
Сообщение: pg_dump of only range of tables
Следующее
От: Szymon Guz
Дата:
Сообщение: Re: pg_dump of only range of tables