Thread: pgsql: Use a safer order of operations in dropdb(): rollbackable

pgsql: Use a safer order of operations in dropdb(): rollbackable

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Use a safer order of operations in dropdb(): rollbackable operations,
ie removing shared-dependency entries, should happen before non-rollbackable
ones.  That way a failure during the rollbackable part doesn't leave us
with inconsistent state.

Modified Files:
--------------
    pgsql/src/backend/commands:
        dbcommands.c (r1.171 -> r1.172)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/dbcommands.c.diff?r1=1.171&r2=1.172)