Changes to pg_hba.conf not effective until after restart

Started by Robert Fitzpatrickover 23 years ago2 messagesgeneral
Jump to latest
#1Robert Fitzpatrick
robert@webtent.com

Can anyone tell me why on one of our PostgreSQL servers, anytime a
change is made to the pg_hba.conf file, the PostgreSQL must be restarted
before the changes take affect? We have other older versions of
PostgreSQL that changes are effective immediately without restart. Is
there some setting for this?

--
Robert

#2Bruce Momjian
bruce@momjian.us
In reply to: Robert Fitzpatrick (#1)
Re: Changes to pg_hba.conf not effective until after restart

Robert Fitzpatrick wrote:

Can anyone tell me why on one of our PostgreSQL servers, anytime a
change is made to the pg_hba.conf file, the PostgreSQL must be restarted
before the changes take affect? We have other older versions of
PostgreSQL that changes are effective immediately without restart. Is
there some setting for this?

It was considered a safety change, so it doesn't read the file as you
are modifying it.

The 7.2 release notes state:

* The "pg_hba.conf" and "pg_ident.conf" configuration is now only
reloaded after receiving a SIGHUP signal, not with each
connection.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073