public inbox for [email protected]  
help / color / mirror / Atom feed
From: Dave Cramer <[email protected]>
To: PostgreSQL Hackers <[email protected]>
Subject: Protocol question regarding Portal vs Cursor
Date: Tue, 7 Nov 2023 06:38:18 -0500
Message-ID: <CADK3HHLJsEN9yBOuTSWHGmUecRCATf_u2GYLBfo-bHsF-NsLwg@mail.gmail.com> (raw)

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


view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Protocol question regarding Portal vs Cursor
  In-Reply-To: <CADK3HHLJsEN9yBOuTSWHGmUecRCATf_u2GYLBfo-bHsF-NsLwg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox