Re: PQsendQuery+PQgetResult+PQsetSingleRowMode limitations and support

From: "Shulgin, Oleksandr" <oleksandr(dot)shulgin(at)zalando(dot)de>
To: "Karl O(dot) Pinc" <kop(at)meme(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PQsendQuery+PQgetResult+PQsetSingleRowMode limitations and support
Date: 2016-04-01 03:57:33
Message-ID: CACACo5SYog+O0THEgHOk0Bm1voVbv+FeOLZPxHgakNzJrdtVNg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Apr 1, 2016 02:57, "Karl O. Pinc" <kop(at)meme(dot)com> wrote:
>
> I assume there are no questions about supporting a
> similar functionality only without PQsetSingleRowMode,
> as follows:

Sorry, but I don't see what is your actual question here?

Both code examples are going to compile and work, AFAICS. The difference is
that the latter will try to fetch the whole result set into client's memory
before returning you a PGresult.

--
Alex

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2016-04-01 04:12:28 Re: Parallel Queries and PostGIS
Previous Message Pavel Stehule 2016-04-01 03:49:31 Re: IF (NOT) EXISTS in psql-completion