Re: PQinSend question - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PQinSend question
Date
Msg-id 17056.1073842133@sss.pgh.pa.us
Whole thread Raw
In response to PQinSend question  (Manfred Spraul <manfred@colorfullife.com>)
Responses Re: PQinSend question
List pgsql-hackers
Manfred Spraul <manfred@colorfullife.com> 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 handler during every send().
So there's no need for PQinSend() to do anything useful.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: psql \d option list overloaded
Next
From: Manfred Spraul
Date:
Subject: Re: libpq thread safety