Re: [EXTERNAL] Re: [pgus-general] Steps to place standby database in read write

From: "Maddali, Srinivas" <Srinivas(dot)Maddali(at)nuance(dot)com>
To: Prashanth Reddy <prash4783(at)gmail(dot)com>, Ashish Tiwari <tashish786(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>, "pgus-general(at)postgresql(dot)org" <pgus-general(at)postgresql(dot)org>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>, "pgsql-in-general(at)postgresql(dot)org" <pgsql-in-general(at)postgresql(dot)org>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: [EXTERNAL] Re: [pgus-general] Steps to place standby database in read write
Date: 2017-07-18 15:59:23
Message-ID: MWHPR05MB3614318440F8FD37EAA8C954EAA10@MWHPR05MB3614.namprd05.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-in-general pgsql-novice pgsql-sql pgus-general

Then after the maintenance, recv or fsync makes transaction commit wait for XLOG to be received or fsync-ed by the stand by database.

Further read

https://wiki.postgresql.org/wiki/Streaming_Replication#Synchronization_capability

From: Prashanth Reddy [mailto:prash4783(at)gmail(dot)com]
Sent: Tuesday, July 18, 2017 8:36 AM
To: Maddali, Srinivas <Srinivas(dot)Maddali(at)nuance(dot)com>; Ashish Tiwari <tashish786(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org; pgus-general(at)postgresql(dot)org; pgsql-sql(at)postgresql(dot)org; pgsql-in-general(at)postgresql(dot)org; pgsql-novice(at)postgresql(dot)org
Subject: Re: [EXTERNAL] Re: [pgus-general] Steps to place standby database in read write

Hi Srinivas,
Thanks for reaching out to me.
We are not in the process of setting up the hot-standby.
we are in the process of testing the DR databases, so we want to place the standby database out of sync from PROD by disabling the replication on DR site , place the DR database in read-write mode for testing purpose, once the application testing is done, we would like to place the DR database back in sync with PROD.

NOTE: For Hot-standby we are using rsync method.

another question on postgres database logs: Is there any other location for the log files apart from "/var/log/postgresql" location?

Regards,
Prashanth
9989819107

On Tue, Jul 18, 2017 at 10:01 AM, Maddali, Srinivas <Srinivas(dot)Maddali(at)nuance(dot)com<mailto:Srinivas(dot)Maddali(at)nuance(dot)com>> wrote:
Please read the tutorials

https://cloud.google.com/community/tutorials/setting-up-postgres-hot-standby<https://urldefense.proofpoint.com/v2/url?u=https-3A__cloud.google.com_community_tutorials_setting-2Dup-2Dpostgres-2Dhot-2Dstandby&d=DwMFaQ&c=djjh8EKwHtOepW4Bjau0lKhLlu-DxM1dlgP0rrLsOzY&r=IyfUvCwneRfj_lQHLqEZ7eNZBHeixfV2raZFP4-zElY&m=t2cHiIwOjRQdGDKkKDAMd-VbZxWE0d3q0Iuje71a-Gw&s=RLGgPEQH26EOJZP7K7wEGU_DPC2o2OBvaETXfKb4r4k&e=>

From: pgus-general-owner(at)postgresql(dot)org<mailto:pgus-general-owner(at)postgresql(dot)org> [mailto:pgus-general-owner(at)postgresql(dot)org<mailto:pgus-general-owner(at)postgresql(dot)org>] On Behalf Of Prashanth Reddy
Sent: Tuesday, July 18, 2017 7:58 AM
To: pgsql-admin(at)postgresql(dot)org<mailto:pgsql-admin(at)postgresql(dot)org>; pgus-general(at)postgresql(dot)org<mailto:pgus-general(at)postgresql(dot)org>; pgsql-sql(at)postgresql(dot)org<mailto:pgsql-sql(at)postgresql(dot)org>; pgsql-in-general(at)postgresql(dot)org<mailto:pgsql-in-general(at)postgresql(dot)org>; pgsql-novice(at)postgresql(dot)org<mailto:pgsql-novice(at)postgresql(dot)org>
Subject: [EXTERNAL] Re: [pgus-general] Steps to place standby database in read write

Help anyone!?

Regards,
Prashanth
9989819107

On Mon, Jul 17, 2017 at 8:27 PM, Prashanth Reddy <prash4783(at)gmail(dot)com<mailto:prash4783(at)gmail(dot)com>> wrote:
Hi,
Can you please provide me the steps as how to stop the replication and open the standby database for read write and put the standby database back in sync with production.
--
Sent from Gmail Mobile

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Luan Huynh 2017-07-19 02:32:08 Re: ORDER BY too slow in Foreign Table using postgres_fdw
Previous Message Prashanth Reddy 2017-07-18 15:35:53 Re: [EXTERNAL] Re: [pgus-general] Steps to place standby database in read write

Browse pgsql-in-general by date

  From Date Subject
Next Message Zbynek Vavros 2017-10-24 14:33:17 Superuser lost?
Previous Message Prashanth Reddy 2017-07-18 15:35:53 Re: [EXTERNAL] Re: [pgus-general] Steps to place standby database in read write

Browse pgsql-novice by date

  From Date Subject
Next Message Riceal McDermott 2017-07-28 15:28:26 Postgres SQL - Certification query
Previous Message Prashanth Reddy 2017-07-18 15:35:53 Re: [EXTERNAL] Re: [pgus-general] Steps to place standby database in read write

Browse pgsql-sql by date

  From Date Subject
Next Message Tim Dudgeon 2017-07-21 11:32:57 commit not completing - how to investigate?
Previous Message Prashanth Reddy 2017-07-18 15:35:53 Re: [EXTERNAL] Re: [pgus-general] Steps to place standby database in read write

Browse pgus-general by date

  From Date Subject
Next Message Nicola Contu 2017-11-28 17:13:11 pg_replication_slots
Previous Message Prashanth Reddy 2017-07-18 15:35:53 Re: [EXTERNAL] Re: [pgus-general] Steps to place standby database in read write