Re: [GENERAL] WAL history files - Pgsql 9.2 - Mailing list pgsql-general

From Patrick B
Subject Re: [GENERAL] WAL history files - Pgsql 9.2
Date
Msg-id CAJNY3itZUFNZ+9DybixZtJf67vTew5RujWCALzP+LiQ2XgUzYg@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] WAL history files - Pgsql 9.2  (Patrick B <patrickbakerbr@gmail.com>)
Responses Re: [GENERAL] WAL history files - Pgsql 9.2
List pgsql-general


2016-12-12 12:09 GMT+13:00 Patrick B <patrickbakerbr@gmail.com>:
2016-12-12 12:00 GMT+13:00 Venkata B Nagothi <nag1010@gmail.com>:

On Mon, Dec 12, 2016 at 7:48 AM, Patrick B <patrickbakerbr@gmail.com> wrote:
Hi guys,

Are the history files copied with the wal_files? Or I have to do it separated? 

00000003.history': No such file or directory


I'm using PostgreSQL 9.2.

Can you please explain the scenario you are referring to ? during streaming replication ? or during standby promotion ?





Sure...

I've got:

> Master01 (sending wal_files to the slaves)
> slave01 (streaming replication from master01 + wal_files)
> slave02 (streaming replication from master01 + wal_files)

I'll turn slave01 into a master; on recovery.conf:

trigger_file = '/tmp/pg_failover_trigger';touch /tmp/pg_failover_trigger


Then, the new scenario will be:

> slave01 (NEW MASTER)
> slave02 (streaming replication from slave01 + wal_files)


Will slave02 be able to switch the timeline using wal_files provided by the new master?
Thanks
 

No.. it didn't copy. i tested here. I had to manually copy the history file from /var/lib/pgsql/9.2/data/pg_xlogs from the new master to the same directory on the slaves.

pgsql-general by date:

Previous
From: Patrick B
Date:
Subject: Re: [GENERAL] WAL history files - Pgsql 9.2
Next
From: "David G. Johnston"
Date:
Subject: Re: [GENERAL] huge table occupation after updates