Re: Streaming replication and pg_xlogfile_name() - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Streaming replication and pg_xlogfile_name()
Date
Msg-id 3f0b79eb1001290240k470e2377o7d72eacbd0338850@mail.gmail.com
Whole thread Raw
In response to Re: Streaming replication and pg_xlogfile_name()  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Streaming replication and pg_xlogfile_name()
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Hot Standby: Relation-specific deferred conflict resolution
Next
From: Fujii Masao
Date:
Subject: Re: Streaming replication, and walsender during recovery