Add strftime escapes to Log config

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-docs(at)postgreSQL(dot)org
Subject: Add strftime escapes to Log config
Date: 2011-03-20 20:32:49
Message-ID: 4D866471.30609@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Anton Yuzhaninov 2011-03-21 16:05:12 number of semaphores and semaphore sets
Previous Message Tom Lane 2011-03-20 17:04:39 Re: Ordering of sections in chapter 22 (Localization)