Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 404EA2E0264 for ; Thu, 10 Jan 2008 20:09:04 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 37147-06 for ; Thu, 10 Jan 2008 20:08:45 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 256142E0049 for ; Thu, 10 Jan 2008 20:09:00 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id m0B08vfw012717; Thu, 10 Jan 2008 19:08:58 -0500 (EST) To: "Andy Shellam" cc: pgsql-admin@postgresql.org Subject: Re: 8.3 RC1 - Logging and filenames In-reply-to: <33671a790801101445j7f3c8644wf41c1e6fced8bedc@mail.gmail.com> References: <33671a790801101445j7f3c8644wf41c1e6fced8bedc@mail.gmail.com> Comments: In-reply-to "Andy Shellam" message dated "Thu, 10 Jan 2008 22:45:36 +0000" Date: Thu, 10 Jan 2008 19:08:57 -0500 Message-ID: <12716.1200010137@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/114 X-Sequence-Number: 27888 "Andy Shellam" writes: > What I want PostgreSQL to do is put a log file "postgresql.log" in > "/var/log/pgsql" - I have an application that handles log rotations, so > would prefer to do it with that, rather than have PostgreSQL do the > rotation. You don't really have any choice about the matter --- Postgres will not use a single fixed filename because that would be guaranteed to lose log entries across a rotation. > I would have thought my config shown below would have made this happen, but > it doesn't appear so. Instead PostgreSQL creates a file called " > postgresql.log.1200003749" in /var/log/pgsql. > Best of it is, I cannot work out what those numbers mean. Per the documentation, Postgres appends the Unix epoch of the file's creation time if the given pattern hasn't got any %-escapes. Looks like that corresponds to Thu Jan 10 2008, 17:22:29 EST. regards, tom lane