Re: Is it possible to start PostgreSQL in 'restrict' mode

From: "Birchall, Austen" <austen(dot)birchall(at)metoffice(dot)gov(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>, "Serge Fonville" <serge(dot)fonville(at)gmail(dot)com>, "Birchall, Austen" <austen(dot)birchall(at)metoffice(dot)gov(dot)uk>
Subject: Re: Is it possible to start PostgreSQL in 'restrict' mode
Date: 2013-07-03 15:59:54
Message-ID: 4E154FB60786D74BB4DFDC97BF991CAC06726E@EXXCMPD1DAG2.cmpd1.metoffice.gov.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi Serge

Not really - more of a case of temporarily not allowing 'non-super' user to connect while data is being updated

Tom

I think that this is the answer - if I restrict access to the 'data_owner' user over the network by replacing the entry: all with data_owner in the pg_hba.conf file this should allow us to carry out data updates 'in peace' as required.

Thanks

Austen

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: 03 July 2013 16:44
To: Birchall, Austen
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: [NOVICE] Is it possible to start PostgreSQL in 'restrict' mode

"Birchall, Austen" <austen(dot)birchall(at)metoffice(dot)gov(dot)uk> writes:
> Is it possible to start a PostgreSQL cluster in 'restrict' mode so that only the postgres user can connect to a database i.e. as a means of keeping 'normal' user out when data updates etc. are being carried out?

Sure, just adjust pg_hba.conf to accept connections from only that user.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Luca Ferrari 2013-07-04 08:18:12 Re: Is it possible to start PostgreSQL in 'restrict' mode
Previous Message Tom Lane 2013-07-03 15:44:22 Re: Is it possible to start PostgreSQL in 'restrict' mode