Is PQgetResult() guaranteed to return the whole SQL command result?

From: Arseny Sher <a(dot)sher(at)postgrespro(dot)ru>
To: pgsql-docs(at)postgresql(dot)org
Subject: Is PQgetResult() guaranteed to return the whole SQL command result?
Date: 2017-12-13 13:50:59
Message-ID: 87o9n2hh30.fsf@ars-thinkpad
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Hi,

I wonder is it guaranteed that one PQgetResult() call returns result for
the whole one statement (SQL command) in usual (not SingleRow) mode?
For instance, if I run PQsendQuery with query consisting of two
statements (separated by semicolons), is possible to have three or more
PQgetResult calls returning data? I guess not, but it seems to be not
clear from the docs.

PQgetResult description says:

Waits for the next result from a prior call...

Does one "result" here correspond to one statement?

--
Arseny Sher
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Peter Eisentraut 2017-12-13 17:20:33 Re: Is PQgetResult() guaranteed to return the whole SQL command result?
Previous Message Peter Eisentraut 2017-12-12 16:26:25 Re: Typo