Re: DBD::Pg/perl question, kind of...

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: DBD::Pg/perl question, kind of...
Дата
Msg-id 20070312140937.GA35220@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: DBD::Pg/perl question, kind of...  (Douglas McNaught <doug@mcnaught.org>)
Ответы Re: DBD::Pg/perl question, kind of...  (Neal Clark <nclark@securescience.net>)
Список pgsql-general
On Mon, Mar 12, 2007 at 08:38:52AM -0400, Douglas McNaught wrote:
> You are restricted to staying in a transaction while the cursor is
> open, so if you want to work outside of transactions LIMIT/OFFSET
> is your only way.

http://www.postgresql.org/docs/8.2/interactive/sql-declare.html

"If WITH HOLD is specified and the transaction that created the
cursor successfully commits, the cursor can continue to be accessed
by subsequent transactions in the same session. (But if the creating
transaction is aborted, the cursor is removed.) A cursor created
with WITH HOLD is closed when an explicit CLOSE command is issued
on it, or the session ends. In the current implementation, the rows
represented by a held cursor are copied into a temporary file or
memory area so that they remain available for subsequent transactions."

--
Michael Fuhr

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

Предыдущее
От: Denis Gasparin
Дата:
Сообщение: Re: Getting Text data as C string
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL crashes on Windows 2003