Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 13684633331 for ; Mon, 26 Apr 2010 12:39:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 00314-04 for ; Mon, 26 Apr 2010 15:38:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 5E5516322B0 for ; Mon, 26 Apr 2010 12:38:55 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 6420234803A; Mon, 26 Apr 2010 08:38:54 -0700 (PDT) Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HBf-3b-8CU2c; Mon, 26 Apr 2010 08:38:54 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [190.95.9.187]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 0294E348036; Mon, 26 Apr 2010 08:38:54 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id F28FB6E48C; Mon, 26 Apr 2010 11:38:51 -0400 (CLT) Date: Mon, 26 Apr 2010 11:38:51 -0400 From: Alvaro Herrera To: Julius Tuskenis Cc: pgsql-admin@postgresql.org Subject: Re: when does postgresql read from pg_hba.conf ?? Message-ID: <20100426153851.GA3963@alvh.no-ip.org> References: <4BD53C4B.7020000@nsoft.lt> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BD53C4B.7020000@nsoft.lt> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.167 tagged_above=-10 required=5 tests=AWL=-0.267, BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201004/330 X-Sequence-Number: 34424 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.