Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 367B01337B93 for ; Mon, 28 Mar 2011 15:48:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 31879-08 for ; Mon, 28 Mar 2011 18:48:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id 33E441337B49 for ; Mon, 28 Mar 2011 15:48:34 -0300 (ADT) Received: (qmail invoked by alias); 28 Mar 2011 18:48:32 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.101]) [88.115.218.165] by mail.gmx.net (mp010) with SMTP; 28 Mar 2011 20:48:32 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX18M0cgH398MVVVLM15JIBa/e0ma6PC319TqcqqIEw dgwjdkYDtAcHbU Subject: Re: Add strftime escapes to Log config From: Peter Eisentraut To: Josh Berkus Cc: pgsql-docs@postgreSQL.org In-Reply-To: <4D866471.30609@agliodbs.com> References: <4D866471.30609@agliodbs.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 28 Mar 2011 21:48:30 +0300 Message-ID: <1301338110.17107.0.camel@vanquo.pezone.net> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/129 X-Sequence-Number: 6562 On sön, 2011-03-20 at 13:32 -0700, Josh Berkus wrote: > 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. We could also link to , for example.