Changing access permissions without re-starting the database

Started by Carlos Olivaover 21 years ago3 messagesgeneral
Jump to latest
#1Carlos Oliva
carlos@pbsinet.com

Hi Forum,

Is there a way to change the database access permissions for different IP
addresses without having to re-start PostgreSQL? I often want to preclude
all IP address but one from accessing the database. Currently, I change the
pg_hba.conf file and re-start the database but I would like to be able to do
the same thing without having to re-start.

Thanks in advance for your response

#2Michael Glaesemann
grzm@seespotcode.net
In reply to: Carlos Oliva (#1)
Re: Changing access permissions without re-starting the database

On Oct 27, 2004, at 9:23 PM, Carlos wrote:

PostgreSQL?  I often want to preclude all IP address but one from
accessing the database.  Currently, I change the pg_hba.conf file and
re-start the database but I would like to be able to do the same thing
without having to re-start.

Try pg_ctl reload instead of pg_ctl restart

Michael Glaesemann
grzm myrealbox com

#3Carlos Oliva
carlos@pbsinet.com
In reply to: Michael Glaesemann (#2)
Re: Changing access permissions without re-starting the database

Thank you Michael. This should work

-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org] On Behalf Of Michael Glaesemann
Sent: Wednesday, October 27, 2004 9:27 AM
To: Carlos
Cc: 'pgsql-general@postgresql.org'
Subject: Re: [GENERAL] Changing access permissions without re-starting the
database

On Oct 27, 2004, at 9:23 PM, Carlos wrote:

PostgreSQL?  I often want to preclude all IP address but one from
accessing the database.  Currently, I change the pg_hba.conf file and
re-start the database but I would like to be able to do the same thing
without having to re-start.

Try pg_ctl reload instead of pg_ctl restart

Michael Glaesemann
grzm myrealbox com

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org