]> granicus.if.org Git - postgresql/commit
Lock database while running drop database in Hot Standby to protect
authorSimon Riggs <simon@2ndQuadrant.com>
Sat, 16 Jan 2010 14:16:31 +0000 (14:16 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Sat, 16 Jan 2010 14:16:31 +0000 (14:16 +0000)
commit8bfd1a88486f340503da610e762c089336cada36
treee2932c33d3efdbe6db07370c2043283b0292fab1
parent40b91b3a8ddf4a7742051ee384ac94b30d8136c9
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.
src/backend/commands/dbcommands.c