Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 2392511DBC5 for ; Fri, 27 Apr 2012 22:35:29 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SNwZK-0006bv-Pb for pgsql-bugs@postgresql.org; Sat, 28 Apr 2012 01:35:28 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q3S1Z73B010867; Fri, 27 Apr 2012 21:35:07 -0400 (EDT) To: Josh Berkus cc: Mark Kirkwood , pgsql-bugs@postgresql.org Subject: Re: log_collector doesn't respond to reloads In-reply-to: <4F9B4649.10100@agliodbs.com> References: <4F99E37E.30904@agliodbs.com> <18699.1335487841@sss.pgh.pa.us> <4F99F24A.3030507@agliodbs.com> <4F99F610.60109@catalyst.net.nz> <20084.1335491774@sss.pgh.pa.us> <4F9A0017.2070404@agliodbs.com> <20658.1335493562@sss.pgh.pa.us> <4F9B4649.10100@agliodbs.com> Comments: In-reply-to Josh Berkus message dated "Fri, 27 Apr 2012 18:22:17 -0700" Date: Fri, 27 Apr 2012 21:35:07 -0400 Message-ID: <10866.1335576907@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/207 X-Sequence-Number: 32958 Josh Berkus writes: > You can end up in a situation where the logs aren't going where they're > supposed to due to some external problem, and that the DBA has no way to > find out what went wrong because he doesn't know where the logs are *now*. Well, if nothing else, lsof would help. Another possibility is that we might change the logging collector process to show its current target filename in ps status (although might there be security/privacy issues with that?). Neither of those things will help Windows users of course, but the sorts of cases you're presenting aren't going to be happening on Windows boxes. [ thinks some more... ] A lower-tech solution would be to always write the name of the current log target file into some small text file in $PGDATA. On the whole though, I think this is an invented problem. We've never heard a complaint from the field about it. regards, tom lane