Protocol question regarding Portal vs Cursor

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Protocol question regarding Portal vs Cursor
Дата
Msg-id CADK3HHLJsEN9yBOuTSWHGmUecRCATf_u2GYLBfo-bHsF-NsLwg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Protocol question regarding Portal vs Cursor  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Greetings,

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.

Dave Cramer

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: ResourceOwner refactoring
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: collect_corrupt_items_vacuum.patch