pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: sivapostgres@yahoo.com <sivapostgres@yahoo.com>
Cc: Pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: How to detach a database
Date: Thu, 19 Aug 2021 10:37:19 -0400
Message-ID: <1703941.1629383839@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwbBp5Jgr9ODZ50ttZMj-BFnzE4BFfhztr9yVGc7Seu6Kg@mail.gmail.com>
References: <195210005.137441.1629382861380.ref@mail.yahoo.com>
	<195210005.137441.1629382861380@mail.yahoo.com>
	<CAKFQuwbBp5Jgr9ODZ50ttZMj-BFnzE4BFfhztr9yVGc7Seu6Kg@mail.gmail.com>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Thursday, August 19, 2021, sivapostgres@yahoo.com <sivapostgres@yahoo.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





view thread (3+ messages)

Message-ID: <1703941.1629383839@sss.pgh.pa.us>
Permalink:  ../1703941.1629383839@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1703941.1629383839@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, sivapostgres@yahoo.com
  Subject: Re: How to detach a database
  In-Reply-To: <1703941.1629383839@sss.pgh.pa.us>
  References: <195210005.137441.1629382861380.ref@mail.yahoo.com> <195210005.137441.1629382861380@mail.yahoo.com> <CAKFQuwbBp5Jgr9ODZ50ttZMj-BFnzE4BFfhztr9yVGc7Seu6Kg@mail.gmail.com> <1703941.1629383839@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox