aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2010-01-16 14:16:31 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2010-01-16 14:16:31 +0000
commit8bfd1a88486f340503da610e762c089336cada36 (patch)
treee2932c33d3efdbe6db07370c2043283b0292fab1 /src/backend/tcop/postgres.c
parent40b91b3a8ddf4a7742051ee384ac94b30d8136c9 (diff)
downloadpostgresql-8bfd1a88486f340503da610e762c089336cada36.tar.gz
postgresql-8bfd1a88486f340503da610e762c089336cada36.zip
Lock database while running drop database in Hot Standby to protect
against concurrent reconnection. Failure during testing showed issue was possible, even though earlier analysis seemed to indicate it would not be required. Use LockSharedObjectForSession() before ResolveRecoveryConflictWithDatabase() and hold lock until end of processing for that WAL record. Simple approach to avoid introducing further bugs at this stage of development on an improbable issue.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions