Re: Race conditions with WAL sender PID lookups

Erik Rijkers <er@xs4all.nl>

From: Erik Rijkers <er@xs4all.nl>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Michael Paquier <michael.paquier@gmail.com>, Masahiko Sawada <sawada.mshk@gmail.com>, Thomas Munro <thomas.munro@enterprisedb.com>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>, pgsql-hackers-owner@postgresql.org
Date: 2017-06-07T21:00:59Z
Lists: pgsql-hackers
On 2017-06-07 20:31, Robert Haas wrote:

> [...]
> 
> [ Side note: Erik's report on this thread initially seemed to suggest
> that we needed this patch to make logical decoding stable.  But my
> impression is that this is belied by subsequent developments on other
> threads, so my theory is that this patch was never really related to
> the problem, but rather than by the time Erik got around to testing
> this patch, other fixes had made the problems relatively rare, and the
> apparently-improved results with this patch were just chance.  If that
> theory is wrong, it would be good to hear about it. ]

Yes, agreed; I was probably mistaken.


Commits

  1. Fix locking in WAL receiver/sender shmem state structs

  2. pgstat: add WAL receiver status view & SRF