Re: Protocol question regarding Portal vs Cursor

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Protocol question regarding Portal vs Cursor
Дата
Msg-id 123128.1699370802@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Protocol question regarding Portal vs Cursor  (Dave Cramer <davecramer@gmail.com>)
Ответы Re: Protocol question regarding Portal vs Cursor
Список pgsql-hackers
Dave Cramer <davecramer@gmail.com> writes:
> If we use a Portal it is possible to open the portal and do a describe and
> then Fetch N records.

> Using a Cursor we open the cursor. Is there a corresponding describe and a
> way to fetch N records without getting the fields each time. Currently we
> have to send the SQL  "fetch <direction> N" and we get the fields and the
> rows. This seems overly verbose.

Portals and cursors are pretty much the same thing, so why not use
the API that suits you better?

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Relids instead of Bitmapset * in plannode.h
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: meson documentation build open issues