Marko Kreen <markokr(at)gmail(dot)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