"Marc G. Fournier" <scrappy@xxxxxxxxxxxxxx> writes: > Is that possible? I've checked the docs for 8.1, and am not finding > anything, nor anything in contrib ... > the best I've been able to think of so far is to modify pg_hba.conf to not > allow new connections for the duration of the operations I need to perform > (drop and create a database) ... Not sure I understand what you need. DROP DATABASE already locks out new connections. regards, tom lane