How do clients failover in hot standby/SR?

From: Herouth Maoz <herouth(at)unicell(dot)co(dot)il>
To: pgsql-general(at)postgresql(dot)org
Subject: How do clients failover in hot standby/SR?
Date: 2012-02-01 10:28:00
Message-ID: C660F5F7-DBF6-4076-B238-653BE2F63EA5@unicell.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

We are looking at a replication solution aimed at high availability.

So we want to use PostgreSQL 9's streaming replication/hot standby. But I seem to be missing a very basic piece of information: suppose the primary is host1 and the secondary is host2. Suppose that when host1 fails host2 detects that and creates the trigger file that causes the secondary to act as primary.

How do all clients, which have connection strings aimed at host1 know to fail over and use host2?

Is there a good Internet resource for reading on this?

Thank you,
Herouth

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2012-02-01 10:48:32 Re: How do clients failover in hot standby/SR?
Previous Message Guillaume Lelarge 2012-02-01 07:50:09 Re: Sequence Ids are not updating after COPY operation in PostgreSQL