Re: BUG ? ... CURSOR AS VIEW ... MOVE ... CRASH

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG ? ... CURSOR AS VIEW ... MOVE ... CRASH
Дата
Msg-id 27144.987789016@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG ? ... CURSOR AS VIEW ... MOVE ... CRASH  (Nabil Sayegh <nsmail@sayegh.de>)
Список pgsql-novice
Nabil Sayegh <nsmail@sayegh.de> writes:
> The following script crashes the backend (when run with psql).

Yes, this is a bug.  I can't get excited about fixing it though,
because there are a huge pile of other bugs associated with changing
fetch directions in complex queries.  The amount of work needed to make
the world safe for this sort of thing is far out of proportion to the
benefit.  Maybe someday someone will get around to it --- but we have
a lot of higher-priority problems...

> BTW: Is it o.k. to use MOVE to re-use a query ? Or is there no speed
> benefit ?

There isn't any real speed benefit; besides, what's the point of
refetching tuples you already fetched?  If you want random access
to a query result, libpq does that just fine on the client side.

            regards, tom lane

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

Предыдущее
От: Nabil Sayegh
Дата:
Сообщение: BUG ? ... CURSOR AS VIEW ... MOVE ... CRASH
Следующее
От: "Bob Whitehouse"
Дата:
Сообщение: Returning function results...