Re: allowing connections from additional hosts without a restart?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lonni J Friedman <netllama(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: allowing connections from additional hosts without a restart?
Date: 2005-01-13 18:39:15
Message-ID: 12314.1105641555@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lonni J Friedman <netllama(at)gmail(dot)com> writes:
> Is it possible to allow TCP/IP connections from additional hosts (IPs)
> without restarting postgresql?

> The issue i'm having is that i've got a postgresql-7.4.6 box that has
> a DB running on it for a j2ee based application on a separate server.
> Now i need to add an additional DB for a different server, but I can't
> afford any down time to restart postgresql for the changes in
> pg_hba.conf to take effect.

SIGHUP (a/k/a pg_ctl reload) is sufficient for editing pg_hba.conf.

If you'd not had tcpip_socket enabled to start with, you would need a
restart to turn that on, but as long as the socket is there you are
good.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Woody Woodring 2005-01-13 18:41:13 Re: allowing connections from additional hosts without a restart?
Previous Message Alvaro Herrera 2005-01-13 18:38:11 Re: allowing connections from additional hosts without a restart?