Re: Hot Standby and handling max_standby_delay - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Hot Standby and handling max_standby_delay
Date
Msg-id 4B549AAB.3010306@enterprisedb.com
Whole thread Raw
In response to Re: Hot Standby and handling max_standby_delay  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Speaking of which, just where is the defense that makes sure that
> walsender and walreceiver are compatible?  We should be checking not
> only version, but all of the configuration variables that are embedded
> in pg_control.

That happens at startup when pg_control is read, before streaming
starts. Remember that you need to start with a base backup.

We also check that the system_identifier in the standby matches that in
the primary, when the connection is established. That protects you from
starting streaming from wrong base backup.

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)
Next
From: Matteo Beccati
Date:
Subject: Re: mailing list archiver chewing patches