From: ascot.moss@gmail.com <ascot.moss@gmail.com>
To: pgsql-bugs@postgresql.org
Cc: ascot.moss@gmail.com
Subject: Enable WAL Archive in Replication server
Date: Mon, 12 Aug 2013 00:53:24 +0800
Message-ID: <97FD6E50-F284-4317-8266-082D9E4769DC@gmail.com> (raw)
In-Reply-To: <C5537D1044616440A8C058893CF489779C294FE7@punitpmbx12.ad.infosys.com>
References: <C5537D1044616440A8C058893CF489779C294FE7@punitpmbx12.ad.infosys.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi,
I want to enable WAL archive on the replica, I am advised that WAL archive can only be enabled on the Master, can you please advise if this is a bug and any workaround available?
regards
now you can only enable WAL archive on the Master server,it will not take effect on replication server.
I can't find the doc which explicit prohibit WAL archive on the replication server,and there are WAL generated in the slave pg_xlog dir with archive_status subdir,so I think this may be a bug.
Jov
blog: http:amutu.com/blog
2013/8/11
Hi,
I want to archive WAL log files in the replication server as well, the postgresql.conf is added with following new lines, after restarting PG, the /var/pgsql/data/archive/ is still empty after 1 hour:
### new lines added today
#
# to enable the replica as Hot Standby
hot_standby = on
#
# to enable WAL archive (coped from master's conf)
wal_level = hot_standby
max_wal_senders = 5
wal_keep_segments = 500
wal_sync_method = fsync
fsync = on
archive_mode = on
archive_command = 'test ! -f /var/pgsql/data/archive/%f && cp %p /var/pgsql/data/archive/%f'
###
ls -la /var/pgsql/data/archive/
total 8
drwx------ 2 postgres root 4096 Aug 11 16:12 ./
drwx------ 3 postgres root 4096 Aug 10 10:59 ../
PG: 9.2.4
OS: Ubuntu 12.04
I am new to Streaming Replication, can you please advise why there is no WAL archive files found in the archive folder?
regards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: ascot.moss@gmail.com
Subject: Re: Enable WAL Archive in Replication server
In-Reply-To: <97FD6E50-F284-4317-8266-082D9E4769DC@gmail.com>
References: <C5537D1044616440A8C058893CF489779C294FE7@punitpmbx12.ad.infosys.com> <97FD6E50-F284-4317-8266-082D9E4769DC@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox