Re: [HACKERS] PQinSend question

2004-02-10 Thread Bruce Momjian
Manfred Spraul wrote: > From fe-secure.c: > > > /* > > * Indicates whether the current thread is in send() > > * For use by SIGPIPE signal handlers; they should > > * ignore SIGPIPE when libpq is in send(). This means > > * that the backend has died unexpectedly. > > */

Re: [HACKERS] PQinSend question

2004-02-10 Thread Bruce Momjian
Tom Lane wrote: > Manfred Spraul <[EMAIL PROTECTED]> writes: > >> return false; /* No threading, so we can't be in send() */ > > > Why not? Signal delivery can interrupt send() even with single-threaded > > users. > > It looks like Bruce left the old logic in place for unthreaded > implementat

Re: [HACKERS] PQinSend question

2004-01-11 Thread Tom Lane
Manfred Spraul <[EMAIL PROTECTED]> writes: >> return false; /* No threading, so we can't be in send() */ > Why not? Signal delivery can interrupt send() even with single-threaded > users. It looks like Bruce left the old logic in place for unthreaded implementations: we just replace the signal

[HACKERS] PQinSend question

2004-01-11 Thread Manfred Spraul
From fe-secure.c: /* * Indicates whether the current thread is in send() * For use by SIGPIPE signal handlers; they should * ignore SIGPIPE when libpq is in send(). This means * that the backend has died unexpectedly. */ pqbool PQinSend(void) { #ifdef ENABLE_THREAD_SAFET