From: Toomas Kristin <toomas.kristin@gmail.com>
To: Laurenz Albe <laurenz.albe@cybertec.at>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Conflict with recovery on PG version 11.6
Date: Thu, 18 Jun 2020 23:29:49 +0300
Message-ID: <F9F549BB-4EB9-4674-B7DF-B7A76229DE4C@gmail.com> (raw)
In-Reply-To: <2d05bf2ad62fc71a5df3d9ba4e75fa300e3e020c.camel@cybertec.at>
References: <5726DC60-FA11-494F-AC0C-D418DDCC895F@gmail.com>
<70b0df32cce4bcb0e5909854e270458714e187f2.camel@cybertec.at>
<918BFA04-B89D-4F29-9868-0A113AD72F52@gmail.com>
<2d05bf2ad62fc71a5df3d9ba4e75fa300e3e020c.camel@cybertec.at>
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.
BR,
Toomas
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: toomas.kristin@gmail.com, laurenz.albe@cybertec.at
Subject: Re: Conflict with recovery on PG version 11.6
In-Reply-To: <F9F549BB-4EB9-4674-B7DF-B7A76229DE4C@gmail.com>
References: <5726DC60-FA11-494F-AC0C-D418DDCC895F@gmail.com> <70b0df32cce4bcb0e5909854e270458714e187f2.camel@cybertec.at> <918BFA04-B89D-4F29-9868-0A113AD72F52@gmail.com> <2d05bf2ad62fc71a5df3d9ba4e75fa300e3e020c.camel@cybertec.at> <F9F549BB-4EB9-4674-B7DF-B7A76229DE4C@gmail.com>
* 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