Re: myProcLocks initialization - Mailing list pgsql-hackers

From Tom Lane
Subject Re: myProcLocks initialization
Date
Msg-id [email protected]
Whole thread Raw
In response to myProcLocks initialization  (Robert Haas <[email protected]>)
List pgsql-hackers
Simon Riggs <[email protected]> writes:
> On Mon, Oct 31, 2011 at 7:54 PM, Robert Haas <[email protected]> wrote:
>> Revised patch attached. �I think it would be useful to assert this
>> both at process startup time and at process shutdown, since it would
>> really be much nicer to have the process that didn't clean up fail the
>> assertion, rather than the new one that innocently inherited its slot;
>> so the attached patch takes that approach.

> Something stronger than an assertion at shutdown? Run-time test?

There's currently no evidence to suggest this will ever fire at all,
especially not in non-development builds, so an assert seems enough
to me.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: myProcLocks initialization
Next
From: Simon Riggs
Date:
Subject: Re: myProcLocks initialization