PostgreSQL server not starting.

From: "Vishnu S(dot)" <vishnu(dot)s(at)nestgroup(dot)net>
To: "Sachin Srivastava" <sachin(dot)srivastava(at)enterprisedb(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: PostgreSQL server not starting.
Date: 2010-10-14 05:39:57
Message-ID: D0124DE0373A744CA8192AFA82C83117C6CAF3@mail-4.tvm.nestgroup.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I am using Slony-I for database replication.

When the master machine is failed, the slave machine is promoted to
master. The script used for this is as below,

cluster name = sql_cluster;

node 1 admin conninfo = 'dbname=postgres host=10.1.20.55 port=5432
user=postgres';

node 2 admin conninfo = 'dbname=postgres host=10.1.20.56 port=5432
user=postgres';

failover (id = 1, backup node = 2);

drop node(id = 1, event node = 2);

It works fine. My requirement is that when the Node 1 is again
connected, the Node 2(current master) should be demoted to Slave and the
Promote Node 1 to Master. Please help to create the script file for
this.

Thanks & Regards,

Vishnu S

***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2010-10-14 06:02:57 Re: Adding a New Column Specifically In a Table
Previous Message Reuven M. Lerner 2010-10-14 04:31:17 Re: Passing refcursors between pl/pgsql functions