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

Re: Can someone help explain what's going on from the attached logs?

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Chris Redekop <chris(at)replicon(dot)com>
Cc: Samuel Hwang <samuel(at)replicon(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can someone help explain what's going on from the attached logs?
Date: 2011-10-27 09:00:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
On Wed, Oct 26, 2011 at 6:41 PM, Chris Redekop <chris(at)replicon(dot)com> wrote:
>> Caveat #2 applies here
>> The consistent state is delayed until your long running transactions
>> end, which is workload dependent but transient.
> I'm not quite sure how this correlates to what I'm seeing in 9.1.1.  When
> attempting to start a hotstandby while the primary is under load it seems to
> get stuck in that 'starting up' mode even when there are no open
> transactions.  If I get it into this state, and then remove all the load
> from the primary it still will not finish starting up.  If I select from
> pg_stat_activity on the primary it shows a couple connections, but they all
> have null 'xact_start's and <IDLE> 'current_query's.  Even if I then kill
> all the connections to the primary (via pg_terminate_backend) the hotstandby
> still will not finish starting up.  I would assume there can't be any
> transactions in progress if there are no connections to the primary.
>  Attempting to restart the hotstandby when in this state produces the same
> result.  If there is a transaction in progress for the duration of the
> backup (or something like that) can it cause it to get into this state?

There's nothing in the log you've shown to indicate any problems.

Yes, when that caveat applies we may wait for some time to find a good
starting point. That could be anywhere from seconds to hours,
depending upon the exact load on the master, but shouldn't be any
longer than your longest running write transaction executing at that

 Simon Riggs         
 PostgreSQL Development, 24x7 Support, Training & Services

In response to

pgsql-general by date

Next:From: Cédric VillemainDate: 2011-10-27 10:23:49
Subject: Re: GIN : Working with term positions
Previous:From: Magnus HaganderDate: 2011-10-27 08:00:10
Subject: Re: specifying multiple ldapserver in pg_hba.conf

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