pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jenopob <jenopob@126.com>
To: pgsql-admin@postgresql.org
Subject: Re: How to auto switch the roles of master and standby
Date: Wed, 13 Jul 2011 18:45:08 -0700 (PDT)
Message-ID: <1310607908714-4584948.post@n5.nabble.com> (raw)
In-Reply-To: <4E1D740E.6020000@noida.interrasystems.com>
References: <1309678517759-4546630.post@n5.nabble.com>
	<4E1D740E.6020000@noida.interrasystems.com>

hi

you could use pgpool-II failover_command to trigger the script what you want
to 

something you can take at 
http://pgpool.projects.postgresql.org/pgpool-II/doc/pgpool-en.html

and pgpool-II works in Master/Slave Mode will meet your requirements

best regards

jenopob

--
View this message in context: http://postgresql.1045698.n5.nabble.com/How-to-auto-swtich-the-roles-of-primary-and-standby-tp454663...
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.



view thread (2+ messages)

Message-ID: <1310607908714-4584948.post@n5.nabble.com>
Permalink:  ../1310607908714-4584948.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1310607908714-4584948.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jenopob@126.com
  Subject: Re: How to auto switch the roles of master and standby
  In-Reply-To: <1310607908714-4584948.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox