Re: dropdb --force - Mailing list pgsql-hackers

From Tom Lane
Subject Re: dropdb --force
Date
Msg-id 8300.1545150572@sss.pgh.pa.us
Whole thread Raw
In response to Re: dropdb --force  (Marti Raudsepp <marti@juffo.org>)
List pgsql-hackers
Marti Raudsepp <marti@juffo.org> writes:
> I think Filip's approach of setting pg_database.datallowconn='false'
> is pretty clever to avoid the synchronization problem.

Some bull-in-a-china-shop has recently added logic that allows ignoring
datallowconn and connecting anyway, so I'm not sure that that'd provide
a production-quality solution.  On the other hand, maybe we could revert
BGWORKER_BYPASS_ALLOWCONN.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: psql exit status with multiple -c or -f
Next
From: Tom Lane
Date:
Subject: Re: Should new partitions inherit their tablespace from their parent?