Re: 8.3.5: Crash in CountActiveBackends() - lockless race? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: 8.3.5: Crash in CountActiveBackends() - lockless race?
Date
Msg-id 10088.1238424684@sss.pgh.pa.us
Whole thread Raw
In response to Re: 8.3.5: Crash in CountActiveBackends() - lockless race?  (Marko Kreen <markokr@gmail.com>)
Responses Re: 8.3.5: Crash in CountActiveBackends() - lockless race?  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
Marko Kreen <markokr@gmail.com> writes:
> Well, that was also my theory.  But my point is that such lockless code
> should be written in more stricter way so it's effects can be clearly
> deduced.

We don't really care that much, for what CountActiveBackends is used for.

>  Or at least such roundabout effects should be commented -
> "Ancient pointer here would still point to PGPROC struct".

Agreed, the comment should mention all of these possibilities.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bernd Helmle
Date:
Subject: Re: Error message and infinite date and timestamp conversion in XML
Next
From: Bruce Momjian
Date:
Subject: Re: psql \d* and system objects