Skip site navigation (1) Skip section navigation (2)

Re: pg_last_xlog_receive_location()

From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Cc: masao(dot)fujii(at)gmail(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_last_xlog_receive_location()
Date: 2011-03-30 02:53:48
Message-ID: AANLkTi=Juc6BpUfFM_dYMJxTEVisOAc3yC55tZxnFVeu@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
On Tue, Mar 29, 2011 at 9:08 PM, Tatsuo Ishii <ishii(at)postgresql(dot)org> wrote:
>> In the primary server which was brought up from the standby,
>> pg_last_xlog_receive_location() returns non-NULL.
>
> Thanks.
>
> BTW, is there any reliable way to know a standby is promoting to
> primary?

if you know the server was a standby and pg_is_in_recovery() returns
false then it was promoted.
is that what you want to know? or i misunderstood you?

-- 
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte y capacitación de PostgreSQL

In response to

pgsql-hackers by date

Next:From: 高增琦Date: 2011-03-30 03:24:56
Subject: Re: crash-safe visibility map, take four
Previous:From: Alvaro HerreraDate: 2011-03-30 02:46:09
Subject: Re: Another swing at JSON

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group