Marti Raudsepp <ma...@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