Re: libpq sendQuery -- getResult not returning until all queries complete - Mailing list pgsql-general

From Peter Geoghegan
Subject Re: libpq sendQuery -- getResult not returning until all queries complete
Date
Msg-id AANLkTikQRgmbowQsC-2S9d1K_A5fdrgfJkYd23bN_NWr@mail.gmail.com
Whole thread Raw
In response to libpq sendQuery -- getResult not returning until all queries complete  (Kelly Burkhart <kelly.burkhart@gmail.com>)
Responses Re: libpq sendQuery -- getResult not returning until all queries complete  (Merlin Moncure <mmoncure@gmail.com>)
Re: libpq sendQuery -- getResult not returning until all queries complete  (Kelly Burkhart <kelly.burkhart@gmail.com>)
List pgsql-general
You can't concurrently execute queries from within a single
connection. Perhaps you should use multiple connections, while
understanding the implications of having each operate within a
separate snapshot.

Don't forget to free memory with PQclear() . I guess you omitted that
because it's just pseudo-code.

--
Regards,
Peter Geoghegan

pgsql-general by date:

Previous
From: Jeremy Harris
Date:
Subject: Re: Can the query planner create indexes?
Next
From: Tomas Vondra
Date:
Subject: Re: Can the query planner create indexes?