public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Igor Korot <[email protected]>
Cc: Laurenz Albe <[email protected]>
Cc: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: libpq simple SELECT
Date: Wed, 17 Dec 2025 14:14:18 -0700
Message-ID: <CAKFQuwZZjhpVcqun8ScEa7KJqK+bd0FXeKJuY3c21S1j1V=0Xg@mail.gmail.com> (raw)
In-Reply-To: <CA+FnnTxvvSOWz0caeB1pewbAgAjRC2QHxvPJ5C+Y7p7usLbMZg@mail.gmail.com>
References: <CA+FnnTzP_9Mh9S7NJL5WFJmbOi2wxw4g=MdoUo-SuXEp3Fyg-g@mail.gmail.com>
	<[email protected]>
	<CA+FnnTzWJtJwUjWBbm9naV9BUWdzTnQ8dKCtPOqaL0+1UOWcAQ@mail.gmail.com>
	<[email protected]>
	<CA+FnnTxvvSOWz0caeB1pewbAgAjRC2QHxvPJ5C+Y7p7usLbMZg@mail.gmail.com>

On Wednesday, December 17, 2025, Igor Korot <[email protected]> wrote:

>
> I hope now my question is clear. I want to know if using CURSR
> is a must.
>

No it is not.  But there isn’t an example of doing so without a cursor
because it is deemed trivial enough that a competent C writer can figure it
out.  In particular, it basically is just the same code as the “fetch”
portion of the example, but the select command is supplied instead of a
fetch command.  Both of those SQL commands result is tuples being generated.

David J.


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], [email protected], [email protected]
  Subject: Re: libpq simple SELECT
  In-Reply-To: <CAKFQuwZZjhpVcqun8ScEa7KJqK+bd0FXeKJuY3c21S1j1V=0Xg@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