Re: how to tell master from replica

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to tell master from replica
Date: 2013-09-26 00:52:36
Message-ID: A946D646-0514-4BAF-97DD-A00EFE3816FE@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sep 25, 2013, at 6:13 PM, Michael Paquier <michael(dot)paquier(at)gmail(dot)com> wrote:

> "SELECT pg_is_in_recovery();" can be used to make the difference
> between a master and a slave.

Exactly what I need; thanks.

--
Scott Ribe
scott_ribe(at)elevated-dev(dot)com
http://www.elevated-dev.com/
(303) 722-0567 voice

In response to

Browse pgsql-general by date

  From Date Subject
Next Message DDT 2013-09-26 02:05:32 Re: Deduplication and transaction isolation level
Previous Message bricklen 2013-09-26 00:19:18 Re: how to tell master from replica