Re: Suspending SELECTs

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Suspending SELECTs
Дата
Msg-id
9766.1137433907@sss.pgh.pa.us
Ответ на
Suspending SELECTs (Alessandro Baretta)
Список
Дерево обсуждения
Suspending SELECTs Alessandro Baretta <a.baretta@barettadeit.com>
Re: Suspending SELECTs Mark Lewis <mark.lewis@mir3.com>
Re: Suspending SELECTs Tom Lane <tgl@sss.pgh.pa.us>
Re: Suspending SELECTs Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Suspending SELECTs Tom Lane <tgl@sss.pgh.pa.us>
Re: Suspending SELECTs "Craig A. James" <cjames@modgraph-usa.com>
Re: Suspending SELECTs Alessandro Baretta <a.baretta@barettadeit.com>
Re: Suspending SELECTs Mark Lewis <mark.lewis@mir3.com>
Re: Suspending SELECTs "Jim C. Nasby" <jnasby@pervasive.com>
Re: Suspending SELECTs "Craig A. James" <cjames@modgraph-usa.com>
Re: Suspending SELECTs Alessandro Baretta <a.baretta@barettadeit.com>
Re: Suspending SELECTs Josh Berkus <josh@agliodbs.com>
Re: Suspending SELECTs Josh Berkus <josh@agliodbs.com>
Re: Suspending SELECTs Alessandro Baretta <a.baretta@barettadeit.com>
Re: Suspending SELECTs August Zajonc <augustz@augustz.com>
Re: Suspending SELECTs Alessandro Baretta <a.baretta@barettadeit.com>
Re: Suspending SELECTs Michael Stone <mstone+postgres@mathom.us>
Re: Suspending SELECTs mark@mark.mielke.cc
Re: Suspending SELECTs Frank Wiles <frank@wiles.org>
Re: Suspending SELECTs Mark Kirkwood <markir@paradise.net.nz>
Re: Suspending SELECTs Tom Lane <tgl@sss.pgh.pa.us>
Re: Suspending SELECTs Mark Kirkwood <markir@paradise.net.nz>
Re: Suspending SELECTs Alessandro Baretta <a.baretta@barettadeit.com>
Re: Suspending SELECTs mark@mark.mielke.cc
Re: Suspending SELECTs Alessandro Baretta <a.baretta@barettadeit.com>
Re: Suspending SELECTs Harry Jackson <harryjackson@gmail.com>
Re: Suspending SELECTs mark@mark.mielke.cc
Re: Suspending SELECTs Tino Wildenhain <tino@wildenhain.de>
Re: Suspending SELECTs Tom Lane <tgl@sss.pgh.pa.us>
Alessandro Baretta  writes:
> I am aware that what I am dreaming of is already available through
> cursors, but in a web application, cursors are bad boys, and should be
> avoided. What I would like to be able to do is to plan a query and run
> the plan to retreive a limited number of rows as well as the
> executor's state. This way, the burden of maintaining the cursor "on
> hold", between activations of the web resource which uses it, is
> transferred from the DBMS to the web application server,

This is a pipe dream, I'm afraid, as the state of a cursor does not
consist exclusively of bits that can be sent somewhere else and then
retrieved.  There are also locks to worry about, as well as the open
transaction itself, and these must stay alive inside the DBMS because
they affect the behavior of other transactions.  As an example, once
the cursor's originating transaction closes, there is nothing to stop
other transactions from modifying or removing rows it would have read.

			regards, tom lane
В списке pgsql-performance по дате отправления
От: Marcos
Дата:
От: Alvaro Herrera
Дата:
Сообщение: Re: Suspending SELECTs
FAQ