Re: Conflict with recovery on PG version 11.6

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: toomas(dot)kristin(at)gmail(dot)com
Cc: laurenz(dot)albe(at)cybertec(dot)at, pgsql-general(at)postgresql(dot)org
Subject: Re: Conflict with recovery on PG version 11.6
Date: 2020-06-19 06:13:01
Message-ID: 20200619.151301.1212338526785241016.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At Thu, 18 Jun 2020 23:29:49 +0300, Toomas Kristin <toomas(dot)kristin(at)gmail(dot)com> wrote in
> Hi,
>
> > There can be other reasons:
> >
> > - replicated ACCESS EXCLUSIVE locks that conflict with queries
> > - replicated ACCESS EXCLUSIVE locks that cause deadlocks
> > - buffer pins that are needed for replication but held by a query
> > - dropped tablespaces that hold temporary files on the standby
>
> Thank you for ideas what to verify.
>
> > I told you the remedies above, why don't you like them?
>
> Basically I want to achieve situation where replication is not suspended (lag is not more than 3 minutes) and statements on standby are not terminated. Based on collected information I don’t see any connection between vacuuming on master and termination of statements on standby. I can temporarily disable vacuuming in order to be 100% sure this is the case. And when I set max_standby_streaming_delay either -1 or as a very big number then it helps avoid query termination but doesn’t help me about suspended replication. All worked with same configuration on Postgres version 10.6, the issue started after version upgrade.
>
> This is the reason why I am very keen to find out real cause for the conflict.

FWIW in case you haven't tried yet, if you could find a DETAILS: line
following to the ERROR: canceling.." message in server log, it would
narrow the possibility.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Rowley 2020-06-19 06:14:07 Re: HASH partitioning not working properly
Previous Message Srinivasa T N 2020-06-19 05:42:25 HASH partitioning not working properly