Re: pg_controldata output documentation

Поиск
Список
Период
Сортировка
От Stephen Harris
Тема Re: pg_controldata output documentation
Дата
Msg-id 20061207170900.GA22068@pugwash.spuddy.org
обсуждение исходный текст
Ответ на pg_controldata output documentation  (andy rost <Andy.Rost@noaa.gov>)
Список 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 по дате отправления:

Предыдущее
От: Zoltan Boszormenyi
Дата:
Сообщение: Re: Internal function call from C-language function
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Online index builds