pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Scott Frazer <sfrazer@couponcabin.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Help troubleshooting SubtransControlLock problems
Date: Wed, 7 Mar 2018 18:50:34 -0300
Message-ID: <20180307215034.3b4rnruwlrxsqise@alvherre.pgsql> (raw)
In-Reply-To: <CA+ey=amxyG=vvr5ednb+-PC=3nTWZ7TcNyrOGzSDRGZURaZ3mA@mail.gmail.com>

Scott Frazer wrote:

> Currently this seems to be happening when the server just starts taking
> connections. It doesn't even need time to scale up anymore (previously it
> took about 8 hours for the problem to re-appear)
> 
> It's only happening on the read replicas, though. I've just set my master
> to handle all the traffic, but that's not really sustainable

I failed to notice at start of thread that these were replicas.  I
suppose then you would have to be thinking about the range of XIDs in
the primary server.  Maybe you left some old transaction open, or an
uncommitted prepared transaction there?

If not, I suppose you're up for some "perf" profiling ...

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (10+ messages)  latest in thread

Message-ID: <20180307215034.3b4rnruwlrxsqise@alvherre.pgsql>
Permalink:  ../20180307215034.3b4rnruwlrxsqise@alvherre.pgsql/
Also on:    postgresql.org/message-id/20180307215034.3b4rnruwlrxsqise@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: alvherre@alvh.no-ip.org, sfrazer@couponcabin.com
  Subject: Re: Help troubleshooting SubtransControlLock problems
  In-Reply-To: <20180307215034.3b4rnruwlrxsqise@alvherre.pgsql>
  References: <CA+ey=amxyG=vvr5ednb+-PC=3nTWZ7TcNyrOGzSDRGZURaZ3mA@mail.gmail.com> <20180307215034.3b4rnruwlrxsqise@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox