Re: High Availability: Hot Standby vs. Warm Standby - Mailing list pgsql-admin

From Brad Nicholson
Subject Re: High Availability: Hot Standby vs. Warm Standby
Date
Msg-id 1278695920.1914.55.camel@bnicholson-desktop
Whole thread Raw
In response to Re: High Availability: Hot Standby vs. Warm Standby  (Thomas Kellerer <spam_eater@gmx.net>)
Responses Re: High Availability: Hot Standby vs. Warm Standby
List pgsql-admin
On Fri, 2010-07-09 at 18:31 +0200, Thomas Kellerer wrote:
> Hi,
>
> Rob Wultsch wrote on 09.07.2010 18:14:
> >> I am aware that I can use the 9.0 standby server for read only queries, but
> >> that is (currently) not something we need
> >>
> >
> > Taking SQL backups without impacting the master might be something to consider.
>
> Interesting point. Thanks for mentioning that.

There is an issue with running your backup from a standby that you need
to be aware of.

There is potential that a long running query on the standby can conflict
with the application of wal records.  In this case, you have a choice to
either terminate the query and let wal records continue to be applied,
or delay the application of the wal until the query completes.

Considering that you are looking at HA and asking about the difference
in lost transactions between streaming replication and 8.4 PITR, I doubt
that letting the standby lag for the duration of the pg_dump is going to
be something that interests you.

Full details are here:
http://www.postgresql.org/docs/9.0/static/hot-standby.html#HOT-STANDBY-CONFLICT

--
Brad Nicholson  416-673-4106
Database Administrator, Afilias Canada Corp.



pgsql-admin by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: High Availability: Hot Standby vs. Warm Standby
Next
From: Kasia Tuszynska
Date:
Subject: Re: High Availability: Hot Standby vs. Warm Standby