pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedRequest for example using pqconnectstart,pqconnectpoll part.
2+ messages / 2 participants
[nested] [flat]
* Request for example using pqconnectstart,pqconnectpoll part.
@ 2021-02-04 15:27 Om Prakash Jaiswal <op12om@yahoo.co.in>
0 siblings, 1 reply; 2+ messages in thread
From: Om Prakash Jaiswal @ 2021-02-04 15:27 UTC (permalink / raw)
To: pgsql-general
Hi,Please provide a sample example using pqconnectstart , pqconnectpoll to make a asynchronous connection and executing a query for client application in C.It is part of
libpq - C Library.
I am able to do query using PQconnectdb and PQexec.I have also used PQconnectdb and PQsendQuery. PQconnectdb is blocking call, now I want to replace PQconnectdb with non blocking connection pqconnectstart and pqconnectpoll.
Please provide an example.
Thanks in advance.
RegardsOm PrakashDBA, Bangalore
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Request for example using pqconnectstart,pqconnectpoll part.
@ 2021-02-04 16:16 Laurenz Albe <laurenz.albe@cybertec.at>
parent: Om Prakash Jaiswal <op12om@yahoo.co.in>
0 siblings, 0 replies; 2+ messages in thread
From: Laurenz Albe @ 2021-02-04 16:16 UTC (permalink / raw)
To: Om Prakash Jaiswal <op12om@yahoo.co.in>; pgsql-general
On Thu, 2021-02-04 at 15:27 +0000, Om Prakash Jaiswal wrote:
> Please provide a sample example using pqconnectstart , pqconnectpoll to make
> a asynchronous connection and executing a query for client application in C.
> It is part of libpq - C Library.
> I am able to do query using PQconnectdb and PQexec.
> I have also used PQconnectdb and PQsendQuery. PQconnectdb is blocking call,
> now I want to replace PQconnectdb with non blocking connection pqconnectstart and pqconnectpoll.
>
> Please provide an example.
I used it in
https://github.com/laurenz/pgreplay/blob/master/database.c#L404
but it certainly is not the most concise example.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-02-04 16:16 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 15:27 Request for example using pqconnectstart,pqconnectpoll part. Om Prakash Jaiswal <op12om@yahoo.co.in>
2021-02-04 16:16 ` Laurenz Albe <laurenz.albe@cybertec.at>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox