Replication Testing- How to introduce a Lag - Mailing list pgsql-novice

From Subramanian,Ramachandran
Subject Replication Testing- How to introduce a Lag
Date
Msg-id aadb9058660d4e10b5cee44b82458802@alte-leipziger.de
Whole thread Raw
Responses Re: Replication Testing- How to introduce a Lag
List pgsql-novice

Hello,

 

 

   I have set up streaming replication in a our test environment and it is working OK .

 

 

 

  1. Is there a way to  force a lag between the source and the stand-by in an environment where there is NO load?

 

  1. During the set up process as I was thrashing around from server to server I received this message in the stand-by if I make the standby follow a new server B after it had been following a server A.  what seems to work is, additionally clearing out the archive logs dir of the standby server along with the data dir, before running the pg_basebackup from the standby.  I am extremely new to postgres and  I want to make sure that what I am doing is not a dangerous practice.

 

 

FATAL: requested timeline 2 is not a child of this server's history

 

LG

 

Ram


Freundliche Grüße

i. A. Ramachandran Subramanian

Zentralbereich Informationstechnologie

Alte Leipziger Lebensversicherung a. G.

Hallesche Krankenversicherung a. G.

______________________

ALH Gruppe
Alte Leipziger-Platz 1, 61440 Oberursel
Tel: +49 (6171) 66-4882
Fax: +49 (6171) 66-800-4882
E-Mail: ramachandran.subramanian@alte-leipziger.de
www.alte-leipziger.de
www.hallesche.de

Alte Leipziger Lebensversicherung a. G., Alte Leipziger-Platz 1, 61440 Oberursel

Vors. des Aufsichtsrats: Dr. Walter Botermann · Vorstand: Christoph Bohn (Vors.), Dr. Jürgen Bierbaum (stv. Vors.), Frank Kettnaker, Dr. Jochen Kriegmeier, Alexander Mayer, Christian Pape, Wiltrud Pekarek, Udo Wilcsek

Sitz Oberursel (Taunus) · Rechtsform VVaG · Amtsgericht Bad Homburg v. d. H. HRB 1583 · USt.-IdNr. DE 114106814

Hallesche Krankenversicherung a. G., Löffelstraße 34-38, 70597 Stuttgart

Vors. des Aufsichtsrats: Dr. Walter Botermann · Vorstand: Christoph Bohn (Vors.), Dr. Jürgen Bierbaum (stv. Vors.), Frank Kettnaker, Dr. Jochen Kriegmeier, Alexander Mayer, Christian Pape, Wiltrud Pekarek, Udo Wilcsek

Sitz Stuttgart · Rechtsform VVaG · Amtsgericht Stuttgart HRB 2686 · USt.-IdNr. DE 147802285

Beiträge zu privaten Kranken- und Pflegekrankenversicherungen unterliegen nicht der Versicherungsteuer (§ 4 (1) Nr. 5 b VersStG) · Versicherungsleistungen sowie Umsätze aus Versicherungsvertreter-/Maklertätigkeiten sind umsatzsteuerfrei

Pflichtangaben der ALH Gruppe gemäß § 35a GmbHG bzw. § 80 AktG

pgsql-novice by date:

Previous
From: vrms
Date:
Subject: Re: AW: Is it possible to turn on pg_stat_extensions at a database level
Next
From: Laurenz Albe
Date:
Subject: Re: Replication Testing- How to introduce a Lag