Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id CC057F916DA for ; Thu, 26 Apr 2012 22:28:08 -0300 (ADT) Received: from [2404:130:0:10::40:2] (helo=mail.catalyst.net.nz) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SNZye-00055i-An for pgsql-bugs@postgresql.org; Fri, 27 Apr 2012 01:28:06 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id D585032865; Fri, 27 Apr 2012 13:27:45 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AzdfDlAzwYhW; Fri, 27 Apr 2012 13:27:44 +1200 (NZST) Received: from [IPv6:2404:130:0:1000:4820:97aa:c0d2:ff87] (unknown [IPv6:2404:130:0:1000:4820:97aa:c0d2:ff87]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id C98A732363; Fri, 27 Apr 2012 13:27:44 +1200 (NZST) Message-ID: <4F99F610.60109@catalyst.net.nz> Date: Fri, 27 Apr 2012 13:27:44 +1200 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 To: Josh Berkus CC: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: log_collector doesn't respond to reloads References: <4F99E37E.30904@agliodbs.com> <18699.1335487841@sss.pgh.pa.us> <4F99F24A.3030507@agliodbs.com> In-Reply-To: <4F99F24A.3030507@agliodbs.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2404:130:0:10::40:2 (failed) X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201204/173 X-Sequence-Number: 32924 On 27/04/12 13:11, Josh Berkus wrote: > On 4/26/12 5:50 PM, Tom Lane wrote: >> Josh Berkus writes: >>> Summary: despite pg_reload(), log directory, filename and destination >>> don't change >> Looking at the code, it's really hard to see how this could possibly >> happen, unless maybe the process is blocking receipt of SIGHUP. Which >> it shouldn't be. Not sure about RHEL5, but on recent Linuxen you can >> check the process's signal masks like this: >> >> grep ^Sig /proc/NNNN/status >> >> where NNNN is the logging collector's PID. Could we see that? > SigQ: 0/399360 > SigPnd: 0000000000000000 > SigBlk: 0000000000000000 > SigIgn: 0000000001007806 > SigCgt: 0000000000000201 > Might be a red herring, but I was able to reproduce this if (and only if) I forgot to create the new dest directory before doing the reload. Subsequently creating the directory and reloading did not result in a file in the new location. Regards Mark