pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
WTF? 9.2.4 Logs have the wrong day of the week?
6+ messages / 5 participants
[nested] [flat]

* WTF? 9.2.4 Logs have the wrong day of the week?
@ 2013-08-14 00:27 Scott Whitney <scott@journyx.com>
  2013-08-14 00:30 ` Re: WTF? 9.2.4 Logs have the wrong day of the week? Lonni J Friedman <netllama@gmail.com>
  2013-08-14 00:53 ` Re: WTF? 9.2.4 Logs have the wrong day of the week? Tom Lane <tgl@sss.pgh.pa.us>
  2013-08-14 13:50 ` Re: WTF? 9.2.4 Logs have the wrong day of the week? Eduardo Morras <emorrasg@yahoo.es>
  2013-08-16 13:55 ` Re: WTF? 9.2.4 Logs have the wrong day of the week? Christian Ullrich <chris@chrullrich.net>
  0 siblings, 4 replies; 6+ messages in thread

From: Scott Whitney @ 2013-08-14 00:27 UTC (permalink / raw)
  To: pgsql-admin

Everything you need to see is right here: 



[root@<serverNameRemoved> pg_log]# ls -lrt 
total 5924 

-rw------- 1 postgres postgres 708669 Aug 8 18:59 postgresql-Thu.log 
-rw------- 1 postgres postgres 669505 Aug 9 18:59 postgresql-Fri.log 
-rw------- 1 postgres postgres 666603 Aug 10 18:56 postgresql-Sat.log 
-rw------- 1 postgres postgres 559716 Aug 11 18:59 postgresql-Sun.log 
-rw------- 1 postgres postgres 626143 Aug 12 18:56 postgresql-Mon.log 
-rw------- 1 postgres postgres 2065282 Aug 13 18:24 postgresql-Tue.log 
-rw------- 1 postgres postgres 755099 Aug 13 19:22 postgresql-Wed.log 



[root@<serverNameRemoved> pg_log]# date 
Tue Aug 13 19:23:53 CDT 2013 


so...yah..anyone? 


For further information, please see: 
http://www.dayoftheweek.org/?m=August&d=13&y=2013&go=Go 


It's the "Wed" part that is confusing me... 

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: WTF? 9.2.4 Logs have the wrong day of the week?
  2013-08-14 00:27 WTF? 9.2.4 Logs have the wrong day of the week? Scott Whitney <scott@journyx.com>
@ 2013-08-14 00:30 ` Lonni J Friedman <netllama@gmail.com>
  3 siblings, 0 replies; 6+ messages in thread

From: Lonni J Friedman @ 2013-08-14 00:30 UTC (permalink / raw)
  To: Scott Whitney <swhitney@journyx.com>; +Cc: pgsql-admin

GMT offset?

On Tue, Aug 13, 2013 at 5:27 PM, Scott Whitney <scott@journyx.com> wrote:
> Everything you need to see is right here:
>
> [root@<serverNameRemoved> pg_log]# ls -lrt
> total 5924
> -rw------- 1 postgres postgres  708669 Aug  8 18:59 postgresql-Thu.log
> -rw------- 1 postgres postgres  669505 Aug  9 18:59 postgresql-Fri.log
> -rw------- 1 postgres postgres  666603 Aug 10 18:56 postgresql-Sat.log
> -rw------- 1 postgres postgres  559716 Aug 11 18:59 postgresql-Sun.log
> -rw------- 1 postgres postgres  626143 Aug 12 18:56 postgresql-Mon.log
> -rw------- 1 postgres postgres 2065282 Aug 13 18:24 postgresql-Tue.log
> -rw------- 1 postgres postgres  755099 Aug 13 19:22 postgresql-Wed.log
>
> [root@<serverNameRemoved> pg_log]# date
> Tue Aug 13 19:23:53 CDT 2013
>
> so...yah..anyone?
>
> For further information, please see:
> http://www.dayoftheweek.org/?m=August&d=13&y=2013&go=Go
>
> It's the "Wed" part that is confusing me...
>



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    netllama@gmail.com
LlamaLand                       https://netllama.linux-sxs.org


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: WTF? 9.2.4 Logs have the wrong day of the week?
  2013-08-14 00:27 WTF? 9.2.4 Logs have the wrong day of the week? Scott Whitney <scott@journyx.com>
@ 2013-08-14 00:53 ` Tom Lane <tgl@sss.pgh.pa.us>
  3 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2013-08-14 00:53 UTC (permalink / raw)
  To: Scott Whitney <swhitney@journyx.com>; Scott Whitney <scott@journyx.com>; +Cc: pgsql-admin

Scott Whitney <scott@journyx.com> writes:
> Everything you need to see is right here: 

Uh, everything except the log_timezone setting.  I believe log files will
be named according to the local time in the log_timezone at the instant
they're created.

			regards, tom lane


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: WTF? 9.2.4 Logs have the wrong day of the week?
  2013-08-14 00:27 WTF? 9.2.4 Logs have the wrong day of the week? Scott Whitney <scott@journyx.com>
@ 2013-08-14 13:50 ` Eduardo Morras <emorrasg@yahoo.es>
  3 siblings, 0 replies; 6+ messages in thread

From: Eduardo Morras @ 2013-08-14 13:50 UTC (permalink / raw)
  To: pgsql-admin; +Cc: Scott Whitney <swhitney@journyx.com>

On Tue, 13 Aug 2013 19:27:14 -0500 (CDT)
Scott Whitney <scott@journyx.com> wrote:

> Everything you need to see is right here: 
> 
> 
> 
> [root@<serverNameRemoved> pg_log]# ls -lrt 
> total 5924 
> 
> -rw------- 1 postgres postgres 708669 Aug 8 18:59 postgresql-Thu.log 
> -rw------- 1 postgres postgres 669505 Aug 9 18:59 postgresql-Fri.log 
> -rw------- 1 postgres postgres 666603 Aug 10 18:56 postgresql-Sat.log 
> -rw------- 1 postgres postgres 559716 Aug 11 18:59 postgresql-Sun.log 
> -rw------- 1 postgres postgres 626143 Aug 12 18:56 postgresql-Mon.log 
> -rw------- 1 postgres postgres 2065282 Aug 13 18:24 postgresql-Tue.log 
> -rw------- 1 postgres postgres 755099 Aug 13 19:22 postgresql-Wed.log 
> 
> 
> 
> [root@<serverNameRemoved> pg_log]# date 
> Tue Aug 13 19:23:53 CDT 2013 
> 
> 
> so...yah..anyone? 
> 

Did you set a max log of 2MB = 2097152 bytes ? Also, up to day 12, all logs roll at 19:00, perhaps to avoid the name collision with the second log file of day 13, it was saved as next available log name.

> 
> For further information, please see: 
> http://www.dayoftheweek.org/?m=August&d=13&y=2013&go=Go 
> 
> 
> It's the "Wed" part that is confusing me... 
> 


---   ---
Eduardo Morras <emorrasg@yahoo.es>


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: WTF? 9.2.4 Logs have the wrong day of the week?
  2013-08-14 00:27 WTF? 9.2.4 Logs have the wrong day of the week? Scott Whitney <scott@journyx.com>
@ 2013-08-16 13:55 ` Christian Ullrich <chris@chrullrich.net>
  3 siblings, 0 replies; 6+ messages in thread

From: Christian Ullrich @ 2013-08-16 13:55 UTC (permalink / raw)
  To: pgsql-admin

* Scott Whitney wrote:

> Everything you need to see is right here:
>
> [root@<serverNameRemoved> pg_log]# ls -lrt
> total 5924
> -rw------- 1 postgres postgres  708669 Aug  8 18:59 postgresql-Thu.log
> -rw------- 1 postgres postgres  669505 Aug  9 18:59 postgresql-Fri.log
> -rw------- 1 postgres postgres  666603 Aug 10 18:56 postgresql-Sat.log
> -rw------- 1 postgres postgres  559716 Aug 11 18:59 postgresql-Sun.log
> -rw------- 1 postgres postgres  626143 Aug 12 18:56 postgresql-Mon.log
> -rw------- 1 postgres postgres 2065282 Aug 13 18:24 postgresql-Tue.log
> -rw------- 1 postgres postgres  755099 Aug 13 19:22 postgresql-Wed.log
>
> [root@<serverNameRemoved> pg_log]# date
> Tue Aug 13 19:23:53 CDT 2013

log_timezone is set to UTC, which is normally six hours ahead of 
Chicago, but does not observe DST, so currently it is five hours ahead. 
18:24 plus five is still the same day, 19:22 plus five is the next day.

Quoting the docs:

log_timezone (string)

Sets the time zone used for timestamps written in the server log. Unlike 
TimeZone, this value is cluster-wide, so that all sessions will report 
timestamps consistently. The built-in default is GMT, but that is 
typically overridden in postgresql.conf; initdb will install a setting 
there corresponding to its system environment.

-- 
Christian




-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: WTF? 9.2.4 Logs have the wrong day of the week?
@ 2013-08-14 01:03 Scott Whitney <scott@journyx.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Scott Whitney @ 2013-08-14 01:03 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Scott Whitney <swhitney@journyx.com>; +Cc: pgsql-admin

Server is set to "Chicago." CDT (or CST...are we in or out? I never remember...) GMT -6/5. 

-------- Original message --------
From: Tom Lane <tgl@sss.pgh.pa.us> 
Date: 08/13/2013  7:54 PM  (GMT-06:00) 
To: Scott Whitney <swhitney@journyx.com>,Scott Whitney <scott@journyx.com> 
Cc: pgsql-admin@postgresql.org 
Subject: Re: [ADMIN] WTF? 9.2.4 Logs have the wrong day of the week? 
 
Scott Whitney <scott@journyx.com> writes:
> Everything you need to see is right here: 

Uh, everything except the log_timezone setting.  I believe log files will
be named according to the local time in the log_timezone at the instant
they're created.

regards, tom lane


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2013-08-16 13:55 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-08-14 00:27 WTF? 9.2.4 Logs have the wrong day of the week? Scott Whitney <scott@journyx.com>
2013-08-14 00:30 ` Lonni J Friedman <netllama@gmail.com>
2013-08-14 00:53 ` Tom Lane <tgl@sss.pgh.pa.us>
2013-08-14 13:50 ` Eduardo Morras <emorrasg@yahoo.es>
2013-08-16 13:55 ` Christian Ullrich <chris@chrullrich.net>
2013-08-14 01:03 Re: WTF? 9.2.4 Logs have the wrong day of the week? Scott Whitney <scott@journyx.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox