libpq pipelineing - Mailing list pgsql-general

From Samuel Williams
Subject libpq pipelineing
Date
Msg-id CAHkN8V9fUtbcRA1wgSUFbPAPRZyLAN8Ps=iofvVs-9ATsGrB-Q@mail.gmail.com
Whole thread Raw
Responses Re: libpq pipelineing  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general
Hello,

Using the asynchronous interface of libpq, is it possible to pipeline
multiple queries?

i.e.

PQsendQuery(query1)
PQsendQuery(query2)

followed by

query1_results = PQgetResult(...)
query2_results = PQgetResult(...)

I tried it but got "another command is already in progress" error.

So, maybe it's not supported, or maybe I'm doing something wrong.

Thanks
Samuel



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Interpreting autovacuum logs (9.6)
Next
From: "David G. Johnston"
Date:
Subject: Re: libpq pipelineing