Hi,
The replication worked fine until the server re-start on Master we did recently this morning. After the restart of the linux server, I have started the database
backup on Master however when I logged on to the slave server I saw the replication is terminated between the master and the slave.
Here is the status of the slave when I queried pg_stat_replication table:
postgres=# select * from pg_stat_replication ;
pid | usesysid | usename | application_name | client_addr | client_hostname | client_port | backend_start | backend_xmin | state
| sent_location | write_location | flush_location | replay_location | sync_priority | sync_state
-----+----------+---------+------------------+-------------+-----------------+-------------+---------------+--------------+-------
+---------------+----------------+----------------+-----------------+---------------+------------
(0 rows)
Does we have to re-initiate the replication every time on postgres if we restart either the Master/Slave Server. If so how can I re-initiate the replication.
Please let me know your thoughts on this.
Thank You,
Sajan Gone
Database Administrator
L Brands
Mobile #: 517-990-5282
Office #: 614-577-7622
From: Samed YILDIRIM <samed@xxxxxxxxxx>
Date: Friday, April 14, 2017 at 10:34 AM To: Sajan Gone <sgone@xxxxxx>, "pgsql-admin@xxxxxxxxxxxxxx" <pgsql-admin@xxxxxxxxxxxxxx> Subject: Re: [ADMIN] Postgres replication Hi Sajan,
You can use following query.
select * from pg_stat_replication;
Best regards.
Samed YILDIRIM
14.04.2017, 17:20, "Gone, Sajan" <sgone@xxxxxx>:
Notice: This communication may contain privileged and/or confidential information. If you are not the intended recipient, please notify the sender by email, and immediately delete the message and any attachments without copying or disclosing them. LB may, for any reason, intercept, access, use, and disclose any information that is communicated by or through, or which is stored on, its networks, applications, services, and devices. |