From: 691525127@qq.com
To: pgsql-bugs@postgresql.org
Cc: 691525127@qq.com
Subject: BUG #14789: In Cascading Replication,the "wal_level" is setted to "archive",the operation becomes abnomal
Date: Tue, 22 Aug 2017 03:02:41 +0000
Message-ID: <20170822030241.1458.71644@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14789
Logged by: pu qun
Email address: 691525127@qq.com
PostgreSQL version: 9.2.19
Operating system: Red Hat Enterprise Linux Server release 6.0 (Santi
Description:
In
"https://wiki.postgresql.org/wiki/What%27s_new_in_PostgreSQL_9.2#Replication_improvements";,
We can see the following description about "Cascading Replication".
"We set it up for replication:
postgresql.conf:
wal_level=hot_standby #(could be archive too)
max_wal_senders=5
hot_standby=on"
The parameter "wal_level" can be set to "hot_standby" or "archive" by the
above-mentioned.
However, when "wal_level" is set to archive, the cascade replication cannot
be done.
The sample is as follows.
1. First, create a primary server.
The setting of postgresql.conf is changed as follows:
wal_level = archive
max_wal_senders = 5
listen_addresses = '*'
hot_standby = off #(When "wal_level" is set to "archive", it is
necessary to specify "off" for "hot_standby". )
2. Using pg_basebackup to create the first standby server.
3. After starting the standby 1,using pg_basebackup to create Standby 2.
Standby 2 is copied from standby 1.
It fails in pg_basebackup, and standby 2 cannot be generated with the
cascade replication.
The error is as follows:
[postgres92@host-193-160-38-95 inst]$ pg_basebackup -F p -D
/file1/standby2/inst/ -h 193.160.38.95 -p 55224 -U postgres92
FATAL: the database system is starting up
pg_basebackup: could not connect to server: FATAL: the database system is
starting up
4. The above issue is not generated when "wal_level" is set to
"hot_standby",not set to "archive".
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: 691525127@qq.com
Subject: Re: BUG #14789: In Cascading Replication,the "wal_level" is setted to "archive",the operation becomes abnomal
In-Reply-To: <20170822030241.1458.71644@wrigleys.postgresql.org>
References: <20170822030241.1458.71644@wrigleys.postgresql.org>
* 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