[libpq] Async Queries and the Order of Execution - Mailing list pgsql-novice

From Helmut Dittenwald
Subject [libpq] Async Queries and the Order of Execution
Date
Msg-id CADxJ+aeCW0xF5rTMHP743jfXvEcEACcS=ysOKKDr7CVhJa78Uw@mail.gmail.com
Whole thread Raw
Responses Re: [libpq] Async Queries and the Order of Execution
List pgsql-novice
Hi everyone!

I have some very simple, single-threaded, client-side C code:

...
PQsendPrepare(...);
PQsetnonblocking(...);
while(1) {
  PQsendQueryPrepared(...); // [1]
  // Here I PQgetResult and PQclear it when done. Not shown to keep brevity.
}

Now I'm curious whether the queries [1] are executed in the same order as they are being sent..?
My experiments indicate that this is the case, but is it guaranteed?

Best Regards,
HD

pgsql-novice by date:

Previous
From: Lutz Horn
Date:
Subject: Re: Insert into postgre database from a stored procedure
Next
From: Laurenz Albe
Date:
Subject: Re: [libpq] Async Queries and the Order of Execution