"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Thursday, August 19, 2021, sivapostgres(at)yahoo(dot)com <sivapostgres(at)yahoo(dot)com>
> wrote:
>> Is there any way to make a PG database either in-active or switch to
>> single-user mode ? We want to avoid DELETE database process.
> Probably can do it via changing the pg_hba.conf file.
Either that or revoke public CONNECT privilege on the database.
regards, tom lane