pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Julius Tuskenis <julius@nsoft.lt>
Cc: pgsql-admin@postgresql.org
Subject: Re: when does postgresql read from pg_hba.conf ??
Date: Mon, 26 Apr 2010 11:38:51 -0400
Message-ID: <20100426153851.GA3963@alvh.no-ip.org> (raw)
In-Reply-To: <4BD53C4B.7020000@nsoft.lt>
References: <4BD53C4B.7020000@nsoft.lt>

Julius Tuskenis wrote:
> 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 ?

Hmm, isn't the file read every time a backend starts on Windows?
This would explain the problem if the file was edited between 13:56:45
and 13:57:38.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



view thread (5+ messages)  latest in thread

Message-ID: <20100426153851.GA3963@alvh.no-ip.org>
Permalink:  ../20100426153851.GA3963@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20100426153851.GA3963@alvh.no-ip.org

 · 

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: alvherre@commandprompt.com, julius@nsoft.lt
  Subject: Re: when does postgresql read from pg_hba.conf ??
  In-Reply-To: <20100426153851.GA3963@alvh.no-ip.org>

* 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