Re: libpq Win32 Mutex performance patch - Mailing list pgsql-patches

From Andrew Chernow
Subject Re: libpq Win32 Mutex performance patch
Date
Msg-id 47FFDD97.4070009@esilo.com
Whole thread Raw
In response to Re: libpq Win32 Mutex performance patch  (Andrew Chernow <ac@esilo.com>)
Responses Re: libpq Win32 Mutex performance patch
List pgsql-patches
Andrew Chernow wrote:
> Tom Lane wrote:
>> Silently not locking is surely
>> not very safe.
>>
>
> Here is the dump code version of the patch.  If anyone wants the return
> value idea, let me know.
>
>
> ------------------------------------------------------------------------
>
>

A more graceful solution would be to print something to stderr and then
exit.  This allows an app's atexit funcs to run.  I don't think libpq
should core dump an app by choice.  I'd be pretty upset if a library I
was using core dumped in some cases rather than exiting.

andrew

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Maintaining cluster order on insert
Next
From: Tom Lane
Date:
Subject: Re: libpq Win32 Mutex performance patch