Re: Streaming replication and pg_xlogfile_name()
Fujii Masao <masao.fujii@gmail.com>
From: Fujii Masao <masao.fujii@gmail.com>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-01-29T10:40:13Z
Lists: pgsql-hackers
Attachments
- extend_format_of_recovery_info_funcs.patch (text/x-patch) patch
On Thu, Jan 28, 2010 at 5:28 PM, Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> wrote: > How about extending the format of the string returned by > pg_last_xlog_receive/replay_location() to include the timeline ID? When > it currently returns e.g '6/200016C', it could return '1/6/200016C', > where 1 is the timeline ID. Then just teach pg_xlogfile_name[_offset]() > to accept that format as well. Sounds good. The attached patch does so. Also the code is available in the 'replication' branch in my git repository. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center