Protocol question regarding Portal vs Cursor - Mailing list pgsql-hackers

From Dave Cramer
Subject Protocol question regarding Portal vs Cursor
Date
Msg-id CADK3HHLJsEN9yBOuTSWHGmUecRCATf_u2GYLBfo-bHsF-NsLwg@mail.gmail.com
Whole thread Raw
Responses Re: Protocol question regarding Portal vs Cursor
List 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 by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: ResourceOwner refactoring
Next
From: Alexander Korotkov
Date:
Subject: Re: collect_corrupt_items_vacuum.patch