pgsql: Rearrange dropdb() to avoid errors after allowing other sessions

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Rearrange dropdb() to avoid errors after allowing other sessions
Date: 2019-11-11 02:18:33
Message-ID: E1iTzHl-0002ah-Vf@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rearrange dropdb() to avoid errors after allowing other sessions to exit.

During Drop Database, it is better to error out before allowing other
sessions to exit and forcefully terminating autovacuum workers. All the
other errors except for checking subscriptions are already done before.

Author: Amit Kapila
Discussion: https://postgr.es/m/CAA4eK1+qhLkCYG2oy9xug9ur_j=G2wQNRYAyd+-kZfZ1z42pLw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9fab25c6cd1f943284b8e0014007cd5750d54308

Modified Files
--------------
src/backend/commands/dbcommands.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2019-11-11 04:08:35 pgsql: Optimize TransactionIdIsCurrentTransactionId().
Previous Message Tom Lane 2019-11-10 23:31:46 pgsql: Release notes for 12.1, 11.6, 10.11, 9.6.16, 9.5.20, 9.4.25.