pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: rob stone <floriparob@gmail.com>
Cc: A Z <poweruserm@live.com.au>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Basic Questions about PostgreSQL.
Date: Wed, 15 Sep 2021 07:56:21 -0400
Message-ID: <972802.1631706981@sss.pgh.pa.us> (raw)
In-Reply-To: <61c72117499fc76f99542e2c889e8841b6e2db49.camel@gmail.com>
References: <PSXP216MB0085C55229D76B403FBE3E6A9ADB9@PSXP216MB0085.KORP216.PROD.OUTLOOK.COM>
	<61c72117499fc76f99542e2c889e8841b6e2db49.camel@gmail.com>

rob stone <floriparob@gmail.com> writes:
> On Wed, 2021-09-15 at 05:10 +0000, A Z wrote:
>> -Is there a simple, immediate, straightforward way to temporarily
>> disable PostgreSQL database
>> use of all other users, except development users, or in fact just one
>> user (one developer, yourself)
>> so that maintenance on the data or the data model may be performed?

> Read
> https://www.postgresql.org/docs/13/app-postgres.html#id-1.9.5.14.6.5
> about single user mode.

I think a better recommendation is to temporarily modify pg_hba.conf
to disallow logins you don't want.  Single-user mode is pretty limited,
because what it really is is single-process mode: there will be no
background support processes such as bgwriter, autovacuum, replication
support, etc.  The system runs, more or less, but performance is not
going to be great.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <972802.1631706981@sss.pgh.pa.us>
Permalink:  ../972802.1631706981@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/972802.1631706981@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, floriparob@gmail.com, poweruserm@live.com.au
  Subject: Re: Basic Questions about PostgreSQL.
  In-Reply-To: <972802.1631706981@sss.pgh.pa.us>
  References: <PSXP216MB0085C55229D76B403FBE3E6A9ADB9@PSXP216MB0085.KORP216.PROD.OUTLOOK.COM> <61c72117499fc76f99542e2c889e8841b6e2db49.camel@gmail.com> <972802.1631706981@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