Re: [HACKERS] Log line prefix on win32

2004-10-08 Thread Michael Paesold
Andreas Pflug wrote: "W. Europe Daylight Time" on my system. With my german system it is "Westeuropäische Sommerzeit". which is longer then the actual timestamp: 2004-09-26 11:56:55 Westeuropäische Sommerzeit Any fix is appreciated! Best Regards, Michael Paesold ---(end of b

Re: [HACKERS] Log line prefix on win32

2004-10-08 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > However, I actually prefer the mail header style of timezone to EST/EDT > anyway: Agreed, but AFAIK there's no portable way to ask strftime for that, so you're still stuck with a compatibility problem. We could teach pg_strftime to do it, but that's som

Re: [HACKERS] Log line prefix on win32

2004-10-08 Thread Andreas Pflug
Tom Lane wrote: Bruce Momjian <[EMAIL PROTECTED]> writes: I was thinking of adding %z as an option to log_line prefix, so to get the current output you would do '%t %z'. I was not suggesting changing the %Z passed to strftime if they ask for timezone. I think this is a bad idea, mainly because yo

Re: [HACKERS] Log line prefix on win32

2004-10-08 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > I was thinking of adding %z as an option to log_line prefix, so to get > > the current output you would do '%t %z'. I was not suggesting changing > > the %Z passed to strftime if they ask for timezone. > > I think this is a bad idea,

Re: [HACKERS] Log line prefix on win32

2004-10-08 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I was thinking of adding %z as an option to log_line prefix, so to get > the current output you would do '%t %z'. I was not suggesting changing > the %Z passed to strftime if they ask for timezone. I think this is a bad idea, mainly because you couldn't

Re: [HACKERS] Log line prefix on win32

2004-10-08 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > I am still trying to figure out a good way to fix this. On unix my log > > shows EDT but Win32 shows US/Eastern and some zones are much longer. > > Should we add %z and not print the timezone information for %t? That > > seems like t

Re: [HACKERS] Log line prefix on win32

2004-10-08 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I am still trying to figure out a good way to fix this. On unix my log > shows EDT but Win32 shows US/Eastern and some zones are much longer. > Should we add %z and not print the timezone information for %t? That > seems like the only reasonable solutio

Re: [HACKERS] Log line prefix on win32

2004-10-08 Thread Andrew Dunstan
Andreas Pflug wrote: Bruce Momjian wrote: I am still trying to figure out a good way to fix this. On unix my log shows EDT but Win32 shows US/Eastern and some zones are much longer. "W. Europe Daylight Time" on my system. Should we add %z and not print the timezone information for %t? That seems

Re: [HACKERS] Log line prefix on win32

2004-10-08 Thread Andreas Pflug
Bruce Momjian wrote: I am still trying to figure out a good way to fix this. On unix my log shows EDT but Win32 shows US/Eastern and some zones are much longer. "W. Europe Daylight Time" on my system. Should we add %z and not print the timezone information for %t? That seems like the only reasona

Re: [HACKERS] Log line prefix on win32

2004-10-08 Thread Bruce Momjian
I am still trying to figure out a good way to fix this. On unix my log shows EDT but Win32 shows US/Eastern and some zones are much longer. Should we add %z and not print the timezone information for %t? That seems like the only reasonable solution.