Skip site navigation (1) Skip section navigation (2)

Hot standby documentation

From: Joshua Tolley <eggyknap(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Hot standby documentation
Date: 2010-01-07 09:09:51
Message-ID: 4b45a4e2.9553f10a.6e3c.68cc@mx.google.com (view raw)
Having concluded I really need to start playing with hot standby, I started
looking for documentation on the subject. I found what I was looking for; I
also found this page[1], which, it seems, ought to mention hot standby.
Comments?

[1] http://developer.postgresql.org/pgdocs/postgres/high-availability.html

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com
From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Joshua Tolley <eggyknap(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hot standby documentation
Date: 2010-01-07 09:34:48
Message-ID: 3f0b79eb1001070134v702f9341k5217481e33afa2b8@mail.gmail.com (view raw)
On Thu, Jan 7, 2010 at 6:09 PM, Joshua Tolley <eggyknap(at)gmail(dot)com> wrote:
> Having concluded I really need to start playing with hot standby, I started
> looking for documentation on the subject. I found what I was looking for; I
> also found this page[1], which, it seems, ought to mention hot standby.
> Comments?
>
> [1] http://developer.postgresql.org/pgdocs/postgres/high-availability.html

+1

At least, it should be mentioned that the slave can answer
read-only queries in "Warm Standby Using Point-In-Time Recovery".
And so "Table 25-1" should be changed.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Joshua Tolley <eggyknap(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hot standby documentation
Date: 2010-01-13 18:01:51
Message-ID: 1263405711.26654.11257.camel@ebony (view raw)
On Thu, 2010-01-07 at 18:34 +0900, Fujii Masao wrote:
> On Thu, Jan 7, 2010 at 6:09 PM, Joshua Tolley <eggyknap(at)gmail(dot)com> wrote:
> > Having concluded I really need to start playing with hot standby, I started
> > looking for documentation on the subject. I found what I was looking for; I
> > also found this page[1], which, it seems, ought to mention hot standby.
> > Comments?
> >
> > [1] http://developer.postgresql.org/pgdocs/postgres/high-availability.html
> 
> +1
> 
> At least, it should be mentioned that the slave can answer
> read-only queries in "Warm Standby Using Point-In-Time Recovery".
> And so "Table 25-1" should be changed.

OK, will add.

-- 
 Simon Riggs           www.2ndQuadrant.com


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Joshua Tolley <eggyknap(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hot standby documentation
Date: 2010-02-05 23:55:39
Message-ID: 201002052355.o15NtdK20314@momjian.us (view raw)
Joshua Tolley wrote:
-- Start of PGP signed section.
> Having concluded I really need to start playing with hot standby, I started
> looking for documentation on the subject. I found what I was looking for; I
> also found this page[1], which, it seems, ought to mention hot standby.
> Comments?
> 
> [1] http://developer.postgresql.org/pgdocs/postgres/high-availability.html

Ah, I now realize it only mentions "warm" standby, not "hot", so I just
updated the documentation to reflect that;  you can see it here:

	http://momjian.us/tmp/pgsql/high-availability.html

	Warm and Hot Standby Using Point-In-Time Recovery (PITR)

Do we want to call the feature "hot standby"?  Is a read-only standby a
"standby" or a "slave"?

-- 
  Bruce Momjian  <bruce(at)momjian(dot)us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

From: Markus Wanner <markus(at)bluegap(dot)ch>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Joshua Tolley <eggyknap(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hot standby documentation
Date: 2010-02-07 09:41:08
Message-ID: 4B6E8AB4.1090108@bluegap.ch (view raw)
Bruce,

Bruce Momjian wrote:
> Ah, I now realize it only mentions "warm" standby, not "hot", so I just
> updated the documentation to reflect that;  you can see it here:

Maybe the table below also needs an update, because unlike "Warm Standby 
using PITR", a hot standby accepts read-only queries and can be 
configured to not loose data on master failure.

> Do we want to call the feature "hot standby"?  Is a read-only standby a
> "standby" or a "slave"?

I think hot standby is pretty much the term, now.

Regards

Markus Wanner

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Markus Wanner <markus(at)bluegap(dot)ch>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Joshua Tolley <eggyknap(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hot standby documentation
Date: 2010-02-07 13:55:23
Message-ID: 603c8f071002070555u3245c62ck5d43cf7ae454898a@mail.gmail.com (view raw)
On Sun, Feb 7, 2010 at 4:41 AM, Markus Wanner <markus(at)bluegap(dot)ch> wrote:
> Bruce Momjian wrote:
>> Do we want to call the feature "hot standby"?  Is a read-only standby a
>> "standby" or a "slave"?
>
> I think hot standby is pretty much the term, now.

See here for the previous iteration of this discussion:

http://archives.postgresql.org/pgsql-hackers/2009-08/msg00870.php

I've always thought this feature was misnamed and nothing has happened
to change my mind, but it's not clear whether I'm in the majority.

...Robert

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hot standby documentation
Date: 2010-02-07 20:35:06
Message-ID: 4B6F23FA.4030601@agliodbs.com (view raw)
> I've always thought this feature was misnamed and nothing has happened
> to change my mind, but it's not clear whether I'm in the majority.

I'm afraid force of habit is more powerful than correctness on this one.
 It's going to be HS/SR whether that's perfectly correct or not.

--Josh Berkus


From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hot standby documentation
Date: 2010-02-07 21:25:38
Message-ID: 86EA620E-D781-4F5C-8B18-065A1B3C9E0B@kineticode.com (view raw)
On Feb 7, 2010, at 12:35 PM, Josh Berkus wrote:

>> I've always thought this feature was misnamed and nothing has happened
>> to change my mind, but it's not clear whether I'm in the majority.
> 
> I'm afraid force of habit is more powerful than correctness on this one.
> It's going to be HS/SR whether that's perfectly correct or not.

What would be correct? I thought HS/SR were pretty correct (as long as no one confuses SR with synchronous replication!).

Best,

David



From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Markus Wanner <markus(at)bluegap(dot)ch>
Cc: Joshua Tolley <eggyknap(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hot standby documentation
Date: 2010-02-08 13:34:06
Message-ID: 201002081334.o18DY6v24223@momjian.us (view raw)
Markus Wanner wrote:
> Bruce,
> 
> Bruce Momjian wrote:
> > Ah, I now realize it only mentions "warm" standby, not "hot", so I just
> > updated the documentation to reflect that;  you can see it here:
> 
> Maybe the table below also needs an update, because unlike "Warm Standby 
> using PITR", a hot standby accepts read-only queries and can be 
> configured to not loose data on master failure.

Ahh, good point.  I had not considered the table would change.  What I
did was to mark "Slaves accept read-only queries" as "Hot only".  You
can see the result here:

	http://momjian.us/tmp/pgsql/high-availability.html

I did not change "Master failure will never lose data" because the 9.0
streaming implementation is not sychronous (see wal_sender_delay in
postgresql.conf), and I don't think even setting that to zero makes the
operation synchronous.  I think we will have to wait for PG 9.1 for
_synchronous_ streaming replication.

-- 
  Bruce Momjian  <bruce(at)momjian(dot)us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Markus Wanner <markus(at)bluegap(dot)ch>, Joshua Tolley <eggyknap(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hot standby documentation
Date: 2010-02-09 00:45:12
Message-ID: 3f0b79eb1002081645p2a714e6ck703c61a626b08615@mail.gmail.com (view raw)
On Mon, Feb 8, 2010 at 10:34 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> Ahh, good point.  I had not considered the table would change.  What I
> did was to mark "Slaves accept read-only queries" as "Hot only".

Can the "warm standby" still reside in v9.0? If not, the mark of
"Hot only" seems odd for me.

> I did not change "Master failure will never lose data" because the 9.0
> streaming implementation is not sychronous (see wal_sender_delay in
> postgresql.conf), and I don't think even setting that to zero makes the
> operation synchronous.  I think we will have to wait for PG 9.1 for
> _synchronous_ streaming replication.

You are right.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Markus Wanner <markus(at)bluegap(dot)ch>, Joshua Tolley <eggyknap(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hot standby documentation
Date: 2010-02-09 04:32:31
Message-ID: 201002090432.o194WVR28031@momjian.us (view raw)
Fujii Masao wrote:
> On Mon, Feb 8, 2010 at 10:34 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > Ahh, good point. ?I had not considered the table would change. ?What I
> > did was to mark "Slaves accept read-only queries" as "Hot only".
> 
> Can the "warm standby" still reside in v9.0? If not, the mark of
> "Hot only" seems odd for me.

Yes, both hot and warm standby is supported in 9.0.

-- 
  Bruce Momjian  <bruce(at)momjian(dot)us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +


Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group