public inbox for [email protected]
help / color / mirror / Atom feedFrom: Igor Korot <[email protected]>
To: David G. Johnston <[email protected]>
Cc: Laurenz Albe <[email protected]>
Cc: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: libpq simple SELECT
Date: Wed, 17 Dec 2025 13:22:57 -0800
Message-ID: <CA+FnnTx42yOoax2VkXbEs1s=JnDORi72CAiT+BvW-jF7aiNV1A@mail.gmail.com> (raw)
In-Reply-To: <CAKFQuwZZjhpVcqun8ScEa7KJqK+bd0FXeKJuY3c21S1j1V=0Xg@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>
<CAKFQuwZZjhpVcqun8ScEa7KJqK+bd0FXeKJuY3c21S1j1V=0Xg@mail.gmail.com>
David,,
On Wed, Dec 17, 2025 at 1:14 PM David G. Johnston
<[email protected]> wrote:
>
> 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.
So what do I do after calling PQexec()? And why is my code running only once?
Thank you.
>
> 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: <CA+FnnTx42yOoax2VkXbEs1s=JnDORi72CAiT+BvW-jF7aiNV1A@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