Re: Timezone for %t log_line_prefix

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Timezone for %t log_line_prefix
Date: 2004-08-04 22:30:01
Message-ID: 200408042230.i74MU1B07536@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Well, I see this in pgtz.c:

{"Eastern Standard Time", "Eastern Daylight Time",
"US/Eastern"}, /* (GMT-05:00) Eastern Time (US & Canada) */

Can't we use this to map to slightly shorter names?

---------------------------------------------------------------------------

Andreas Pflug wrote:
> Tom Lane wrote:
> >
> > Does Windows' strftime have any short zone name %-spec? Seems like a
> > quick #ifdef WIN32 to use a more compact zone name would be the best
> > solution.
>
> I already checked; unfortunately there's no short zone option. %z and %Z
> give identical output.
>
> >
> > I'd be inclined to leave out the zone field *on Windows only* if there
> > is no %-spec that uses something more reasonable. I don't think this
> > problem justifies adding more %-options to log_line_prefix.
>
> I don't have a problem with either way, but it appears desirable if
> there would be a log_line_prefix option that gives identical result on
> all systems.
>
> Regards,
> Andreas
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Doug McNaught 2004-08-04 22:30:43 Re: Selecting a specific row
Previous Message Cason, Kenny 2004-08-04 22:11:53 Selecting a specific row