Re: [HACKERS] Group clear xid can leak semaphore count - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Group clear xid can leak semaphore count
Date
Msg-id 15786.1483652924@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Group clear xid can leak semaphore count  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [HACKERS] Group clear xid can leak semaphore count  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I think we have run into this kind of issue before.  I wonder if
> there's any way to insert some kind of a guard - e.g. detect at
> backend startup time that the semaphore has a non-zero value and fix
> it, issuing a warning along the way...  maybe something like:

See the PGSemaphoreReset near the end of InitProcess.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: [HACKERS] Supporting huge pages on Windows
Next
From: Michael Banck
Date:
Subject: Re: [HACKERS] Replication/backup defaults