Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 4E6341337C61 for ; Sun, 20 Mar 2011 18:06:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 20446-01-6 for ; Sun, 20 Mar 2011 21:06:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148148.authsmtp.co.uk (outmail148148.authsmtp.co.uk [62.13.148.148]) by mail.postgresql.org (Postfix) with ESMTP id AF71C133810F for ; Sun, 20 Mar 2011 17:32:53 -0300 (ADT) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt5.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p2KKWqUc073990 for ; Sun, 20 Mar 2011 20:32:52 GMT Received: from Sidney-Stratton.local (70-36-197-225.dsl.dynamic.sonic.net [70.36.197.225]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p2KKWnHu003301 for ; Sun, 20 Mar 2011 20:32:50 GMT Message-ID: <4D866471.30609@agliodbs.com> Date: Sun, 20 Mar 2011 13:32:49 -0700 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: pgsql-docs@postgreSQL.org Subject: Add strftime escapes to Log config Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: 3a0cfff8-5331-11e0-ab46-001185d377ca X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkbIhBDJB8FUg9K Gl5dNUZcKlAnfHUf XCRcFVZUTyAgG3x3 awtQfQddaElMVQBr Hk9JXFFUCgRhBgID BBsBUBxwchpGNj5y Hj0FAAgeXER5dkZ8 DE9WFm5IZjZgOzZJ BkhFcgBXcR5Lf0pF dwEtUHUQYWUGZ3Jl E1RsYDs4KxxTJGxO XhsDMVMXTA4GBTU1 Xx0ZVSkoVWkCSG04 KBooK1F0 X-Authentic-SMTP: 61633136333939.1000:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.6 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201103/111 X-Sequence-Number: 6544 All, This page: http://www.postgresql.org/docs/8.3/static/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHERE has the following text: The value is treated as a strftime pattern, so %-escapes can be used to specify time-varying file names. However, nowhere in our docs do we list sample strftime escapes. This means that PG DBAs who are not programmers (and even some who are) end up googling for them all the time. So I would like to add the following text: Useful excape codes which are available on most platforms include: %Y = year, %m = month, %d = day of month, %H = hour, %M = minute, %a = short weekday name, and %b = short month name. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com