pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Rohit Arora <arora.leo9@gmail.com>
To: shreeyansh2014@gmail.com
Cc: pgsql-admin@postgresql.org
Subject: Re: canceling statement coming in slave instance
Date: Tue, 27 Nov 2018 06:12:24 +0100
Message-ID: <7a4f88eeb049543c0508a343ba4bf274dc10b487.camel@cybertec.at> (raw)
In-Reply-To: <CAMUAjH805S-35_QetGAHn2SOZe_=YAdcLN_CeXfzYt2KBMxnTw@mail.gmail.com>
References: <CAMUAjH9FaYYJFkY6K5Exnb4ZA8KiPxOCqFCL9-AMTi+24ZYxdA@mail.gmail.com>
	<CAMUAjH_btdjCoTvOW-rkc0KpkVx3TAv1P9C8AXjGro07T8n4wQ@mail.gmail.com>
	<CAGDYbUO7wMjsrf3Cu1vtnzXK3=LcYp=1fQEbwKBN8k2J2nowiQ@mail.gmail.com>
	<CAGDYbUNT5++yxrzv_wPtAYPF_RYmUpY+cLSV8nkU8cN0tFaRtA@mail.gmail.com>
	<CAMUAjH805S-35_QetGAHn2SOZe_=YAdcLN_CeXfzYt2KBMxnTw@mail.gmail.com>

On Tue, 2018-11-27 at 10:20 +0530, Rohit Arora wrote:
[is fighting canceled queries dur to replication conflicts, but fears primary bloat]
In that case, I would set

max_standby_streaming_delay = -1
max_standby_archive_delay = -1
hot_standby_feedback = off

Then no queries should get canceled on the standby, and long queries
on the standby won't cause bloat on the primary.

The price you are paying is delayed replication.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com





view thread (7+ messages)

Message-ID: <7a4f88eeb049543c0508a343ba4bf274dc10b487.camel@cybertec.at>
Permalink:  ../7a4f88eeb049543c0508a343ba4bf274dc10b487.camel@cybertec.at/
Also on:    postgresql.org/message-id/7a4f88eeb049543c0508a343ba4bf274dc10b487.camel@cybertec.at

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, arora.leo9@gmail.com, shreeyansh2014@gmail.com
  Subject: Re: canceling statement coming in slave instance
  In-Reply-To: <7a4f88eeb049543c0508a343ba4bf274dc10b487.camel@cybertec.at>

* 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