Re: pg_controldata output documentation - Mailing list pgsql-general

From Stephen Harris
Subject Re: pg_controldata output documentation
Date
Msg-id 20061207170900.GA22068@pugwash.spuddy.org
Whole thread Raw
In response to pg_controldata output documentation  (andy rost <Andy.Rost@noaa.gov>)
List pgsql-general
On Thu, Dec 07, 2006 at 08:54:22AM -0600, andy rost wrote:
> Is there any documentation on the output from pg_controldata? Most of it
> seems intuitive but I would like something definitive on the following
> lines:
>
> Latest checkpoint location:           2F9/B38DE758
> Prior checkpoint location:            2F9/A3F688F8
> Latest checkpoint's REDO location:    2F9/B38DE758
> Latest checkpoint's UNDO location:    0/0
>
> Especially, how do I relate this to the file names in the pg_xlog directory.

http://www.postgresql.org/docs/8.2/static/functions-admin.html
pg_xlogfile_name_offset() and pg_xlogfile_name_()

eg

testdb=# select pg_xlogfile_name_offset('2F9/B38DE758');
      pg_xlogfile_name_offset
------------------------------------
 (00000001000002F9000000B3,9299800)
(1 row)

testdb=# select pg_xlogfile_name('2F9/B38DE758');
     pg_xlogfile_name
--------------------------
 00000001000002F9000000B3
(1 row)

--

rgds
Stephen

pgsql-general by date:

Previous
From: Zoltan Boszormenyi
Date:
Subject: Re: Internal function call from C-language function
Next
From: Jeff Davis
Date:
Subject: Re: Online index builds