pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julius Tuskenis <julius@nsoft.lt>
To: pgsql-admin@postgresql.org
Subject: when does postgresql read from pg_hba.conf ??
Date: Mon, 26 Apr 2010 10:10:03 +0300
Message-ID: <4BD53C4B.7020000@nsoft.lt> (raw)

Hello, list

from the postgresql documentation I know, that "The pg_hba.conf file is 
read on start-up and when the main server process receives a SIGHUP 
signal. If you edit the file on an active system, you will need to 
signal the server (using pg_ctl reload or kill -HUP) to make it re-read 
the file."

But there have been an incident this Saturday that indicates, that these 
are not the only triggers for reading pg_hba.conf. One of our clients 
edited pg_hba.conf that day (not correctly I must add), but neither 
restarted nor reloaded the postgresql (logs below confirm that). Anyway 
at some point the system started using the newly edited file causing 
some problems. What could cause the pg_hba.conf to be read by postgresql ?

OS: Win XP SP3
DB: Postgresql 8.3

The log (from pg_log):
2010-04-24 13:49:43 EEST LOG:  loaded library 
"$libdir/plugins/plugin_debugger.dll"
2010-04-24 13:51:07 EEST LOG:  loaded library 
"$libdir/plugins/plugin_debugger.dll"
2010-04-24 13:52:31 EEST LOG:  loaded library 
"$libdir/plugins/plugin_debugger.dll"
2010-04-24 13:53:54 EEST LOG:  loaded library 
"$libdir/plugins/plugin_debugger.dll"
2010-04-24 13:55:22 EEST LOG:  loaded library 
"$libdir/plugins/plugin_debugger.dll"
2010-04-24 13:56:45 EEST LOG:  loaded library 
"$libdir/plugins/plugin_debugger.dll"
2010-04-24 13:57:38 EEST LOG:  loaded library 
"$libdir/plugins/plugin_debugger.dll"
2010-04-24 13:57:38 EEST LOG:  invalid IP mask "md5" in file "C:/Program 
Files/PostgreSQL/8.3/data/pg_hba.conf" line 72: Unknown host
2010-04-24 13:57:38 EEST FATAL:  missing or erroneous pg_hba.conf file
2010-04-24 13:57:38 EEST HINT:  See server log for details.
2010-04-24 13:57:46 EEST LOG:  loaded library 
"$libdir/plugins/plugin_debugger.dll"
2010-04-24 13:57:46 EEST LOG:  invalid IP mask "md5" in file "C:/Program 
Files/PostgreSQL/8.3/data/pg_hba.conf" line 72: Unknown host
2010-04-24 13:57:46 EEST FATAL:  missing or erroneous pg_hba.conf file
2010-04-24 13:57:46 EEST HINT:  See server log for details.
2010-04-24 13:58:05 EEST LOG:  loaded library 
"$libdir/plugins/plugin_debugger.dll"
2010-04-24 13:59:28 EEST LOG:  loaded library 
"$libdir/plugins/plugin_debugger.dll"
2010-04-24 13:59:58 EEST LOG:  loaded library 
"$libdir/plugins/plugin_debugger.dll"

-- 
Julius Tuskenis
Programavimo skyriaus vadovas
UAB nSoft
mob. +37068233050

view thread (5+ messages)  latest in thread

Message-ID: <4BD53C4B.7020000@nsoft.lt>
Permalink:  ../4BD53C4B.7020000@nsoft.lt/
Also on:    postgresql.org/message-id/4BD53C4B.7020000@nsoft.lt

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: julius@nsoft.lt
  Subject: Re: when does postgresql read from pg_hba.conf ??
  In-Reply-To: <4BD53C4B.7020000@nsoft.lt>

* 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