[libpq] Async Queries and the Order of Execution

Helmut Dittenwald <[email protected]>
Newsgroups gmane.comp.db.postgresql.novice
Message-ID <CADxJ+aeCW0xF5rTMHP743jfXvEcEACcS=ysOKKDr7CVhJa78Uw@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.