Обсуждение: pgsql: Lock database while running drop database in Hot Standby to

Поиск
Список
Период
Сортировка

pgsql: Lock database while running drop database in Hot Standby to

От
sriggs@postgresql.org (Simon Riggs)
Дата:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/commands:
        dbcommands.c (r1.232 -> r1.233)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/dbcommands.c?r1=1.232&r2=1.233)