Thursday, July 10, 2008

Re: [INTERFACES] libPQ -Canceling Blocking Calls

7/10/08 3:05 PM, also sprach tgl@sss.pgh.pa.us:

> Sure. Look at psql for an example. You probably need to call PQcancel
> from a signal handler, but there's a signal-safe variant for that.

Great. Although I was planning on using a threaded approach, but since libpq
was compiled thread-safe, I assume this would be fine. I was hoping I could
cancel a synchronous call without having to collapse the thread. This is
good news.

Thanks,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

--
Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces

No comments: