Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 203D2B5DC19 for ; Wed, 13 Jul 2011 22:45:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 53242-06 for ; Thu, 14 Jul 2011 01:45:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 9B90FB5DC17 for ; Wed, 13 Jul 2011 22:45:09 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QhAzE-0005CY-Nf for pgsql-admin@postgresql.org; Wed, 13 Jul 2011 18:45:08 -0700 Date: Wed, 13 Jul 2011 18:45:08 -0700 (PDT) From: jenopob To: pgsql-admin@postgresql.org Message-ID: <1310607908714-4584948.post@n5.nabble.com> In-Reply-To: <4E1D740E.6020000@noida.interrasystems.com> References: <1309678517759-4546630.post@n5.nabble.com> <4E1D740E.6020000@noida.interrasystems.com> Subject: Re: How to auto switch the roles of master and standby MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201107/98 X-Sequence-Number: 37877 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-tp4546630p4584948.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.