Re: Add strftime escapes to Log config

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-docs(at)postgresql(dot)org
Subject: Re: Add strftime escapes to Log config
Date: 2011-09-06 02:58:57
Message-ID: 201109060258.p862wv529634@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Peter Eisentraut wrote:
> 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
> <http://pubs.opengroup.org/onlinepubs/007908799/xsh/strftime.html>, for
> example.

Agreed. I have applied the attached patch to 9.1 and head.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Attachment Content-Type Size
/rtmp/strftime text/x-diff 849 bytes

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message David Fetter 2011-09-06 04:22:18 Re: Couple document fixes
Previous Message lsliang 2011-09-06 02:43:57 about value storage