Re: PostgreSQL 8.3, libpq and WHERE CURRENT OF

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostgreSQL 8.3, libpq and WHERE CURRENT OF
Дата
Msg-id 10801.1193404182@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PostgreSQL 8.3, libpq and WHERE CURRENT OF  (Sebastien FLAESCH <sf@4js.com>)
Ответы Re: PostgreSQL 8.3, libpq and WHERE CURRENT OF  (Sebastien FLAESCH <sf@4js.com>)
Re: PostgreSQL 8.3, libpq and WHERE CURRENT OF  (Sebastien FLAESCH <sf@4js.com>)
Список pgsql-hackers
Sebastien FLAESCH <sf@4js.com> writes:
> Does a simple PQPrepare() with a SELECT statement not create a cursor on
> the server side?

No.  A prepared statement is just a query plan, not a query-in-progress.

The Bind/Execute messages sent by PQexecPrepared create something akin
to a cursor, but libpq doesn't expose any API for fetching one row at a
time in that context, so there's no way to use the "current row" anyway.
        regards, tom lane


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

Предыдущее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: PANIC caused by open_sync on Linux
Следующее
От: "Jignesh K. Shah"
Дата:
Сообщение: Re: [PERFORM] 8.3beta1 testing on Solaris