Bruce Momjian wrote:
>I thought it should be global too, basically testing on the first
What if two PQconnect calls happen at the same time?
I would really prefer the manual approach with a new PQsetsighandler
function - the autodetection is fragile, it's trivial to find a special
case where it breaks.
Bruce, you wrote that a new function would be overdesign. Are you sure?
Your simpler proposals all fail with multithreaded apps.
I've attached the patch that implements the global flag with two special
function that access it.
In response to
pgsql-patches by date
|Next:||From: Tom Lane||Date: 2003-11-16 18:21:38|
|Subject: Re: [PATCHES] SRA Win32 sync() code |
|Previous:||From: Bruce Momjian||Date: 2003-11-16 18:06:48|
|Subject: Re: [PATCHES] SRA Win32 sync() code|