Re: Question About WAL filename and its time stamp - Mailing list pgsql-general

From Haribabu kommi
Subject Re: Question About WAL filename and its time stamp
Date
Msg-id 8977CB36860C5843884E0A18D8747B036B9A4D97@szxeml558-mbs.china.huawei.com
Whole thread Raw
In response to Question About WAL filename and its time stamp  ("ascot.moss@gmail.com" <ascot.moss@gmail.com>)
List pgsql-general

On 05 September 2013 18:50 ascot.moss wrote:

 

>From the pg_xlog folder, I found some files with interesting time stamps: older file names with newer timestamps, can you please advise why?

 

>Set 1: How come 0000000400000F490000008D is 10 minutes newer than 0000000400000F490000008E?

>-rw------- 1 111 115 16777216 Sep  4 15:28 0000000400000F490000008C

>-rw------- 1 111 115 16777216 Sep  4 15:27 0000000400000F490000008D <===

>-rw------- 1 111 115 16777216 Sep  4 15:17 0000000400000F490000008E <====

>-rw------- 1 111 115 16777216 Sep  4 15:26 0000000400000F490000008F

>-rw------- 1 111 115 16777216 Sep  4 15:27 0000000400000F4900000090

 

>Set 2: why files,  0000000400000F48000000FD,  0000000400000F48000000FE and 0000000400000F4900000000, are not reused?

>1) -rw------- 1 postgres postgres 16777216 Sep  4 23:07 0000000400000F48000000FA

>2) -rw------- 1 postgres postgres 16777216 Sep  4 23:08 0000000400000F48000000FB

>3) -rw------- 1 postgres postgres 16777216 Sep  4 23:09 0000000400000F48000000FC  <===

>4) -rw------- 1 postgres postgres 16777216 Sep  4 14:47 0000000400000F48000000FD  <====

>5) -rw------- 1 postgres postgres 16777216 Sep  4 14:46 0000000400000F48000000FE

>6) -rw------- 1 postgres postgres 16777216 Sep  4 14:46 0000000400000F4900000000

 

In postgres every checkpoint end, it recycle or remove the old xlog files. During the recycle process it creates next set of xlog files

Which will be used later by database operations. The files FC, FD, FE and 00 are recycled files. Now the FC file is in use because of this

Reason the time stamp is different.

 

Regards,

Hari babu.

pgsql-general by date:

Previous
From: Suzuki Hironobu
Date:
Subject: Re: Question About WAL filename and its time stamp
Next
From: Szymon Guz
Date:
Subject: Re: Levenshtein Distance with more than 255 characters