Re: PITR backup history files with identical 2nd part file names

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rafael Martinez <r(dot)m(dot)guerrero(at)usit(dot)uio(dot)no>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: PITR backup history files with identical 2nd part file names
Date: 2010-01-21 21:10:17
Message-ID: 13816.1264108217@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rafael Martinez <r(dot)m(dot)guerrero(at)usit(dot)uio(dot)no> writes:
> After upgrading to 8.3.9 and moving some our PostgreSQL clusters to a
> new server yesterday, we have experienced a strange thing this past night.

> All PITR backup history files created when running a PITR base backup on
> all PostgreSQL clusters running in this new server (at different hours
> during the night) got an identical 2nd part file name.

> <24 digits>.00000020.backup e.g.000000020000020800000060.00000020.backup

I think this is normal behavior now, if you have an unloaded server.
pg_start_backup now forces a segment switch, so if nothing much else is
happening it's quite likely that the recorded start point will be the
beginning of the WAL segment (plus the page header size).

> Is it normal to get the same 2nd part of the file name all the time? How
> is this value generated?

It's just the current offset within the current WAL segment.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2010-01-21 21:22:30 Re: primary key error message
Previous Message Tom Lane 2010-01-21 20:51:09 Re: primary key error message