Re: backup WAL files, - Mailing list pgsql-admin

From Tom Lane
Subject Re: backup WAL files,
Date
Msg-id 23896.1200411702@sss.pgh.pa.us
Whole thread Raw
In response to backup WAL files,  ("Sebastian Reitenbach" <sebastia@l00-bugdead-prods.de>)
Responses Re: backup WAL files,  (Tom Davies <tgdavies@gmail.com>)
List pgsql-admin
"Sebastian Reitenbach" <sebastia@l00-bugdead-prods.de> writes:
> The WAL files have names like this:
> 00000001000000010000003C

> I am wonder what the meaning of the two 1 in the filename is?

The first one (the first 8 hex digits actually) are the current
"timeline" number.  The second one isn't very interesting, it's
an artifact of the way that WAL file locations are converted to
file names internally.

> Are the WAL
> file names counted up to FFFFFFFFFFFFFFFFFFFFFFFFF ?
> Then I'll run into problems anyways as these int number are too large to be
> handled by bash.

You definitely should not expect to convert the names to integers.

            regards, tom lane

pgsql-admin by date:

Previous
From: Jean-Marc Pigeon
Date:
Subject: Postgresql 8.2 AUTOVACUUM LOG
Next
From: "Ertel, Steve"
Date:
Subject: data table files