pgsql: Check RecoveryInProgress() while holding ProcArrayLock during - Mailing list pgsql-committers

From sriggs@postgresql.org (Simon Riggs)
Subject pgsql: Check RecoveryInProgress() while holding ProcArrayLock during
Date
Msg-id 20100419180338.B9A9B7541D0@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Check RecoveryInProgress() while holding ProcArrayLock during snapshots.
This prevents a rare, yet possible race condition at the exact moment
of transition from recovery to normal running.

Modified Files:
--------------
    pgsql/src/backend/storage/ipc:
        procarray.c (r1.63 -> r1.64)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/procarray.c?r1=1.63&r2=1.64)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix uninitialized local variables.
Next
From: sriggs@postgresql.org (Simon Riggs)
Date:
Subject: pgsql: Add new message for explicit rejection by pg_hba.conf.