From: Andreas Kretschmer <andreas@a-kretschmer.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Non-pausing table scan on 9.6 replica?
Date: Wed, 6 Mar 2019 06:20:43 +0100
Message-ID: <af14a041-eb0d-05f2-8d84-82f6579df168@a-kretschmer.de> (raw)
In-Reply-To: <CAEO096oCNF+Hg08SmcrRGPhnVA6StgiCw7HbOUULPN8i8o3=gQ@mail.gmail.com>
References: <CAEO096oCNF+Hg08SmcrRGPhnVA6StgiCw7HbOUULPN8i8o3=gQ@mail.gmail.com>
Am 06.03.19 um 01:26 schrieb Mark Fletcher:
> Hi All,
>
> On a 9.6 streaming replica, we do table scans for stats and other
> things. During these scans, the replication is paused (the
> 'recovering' postgres process has 'waiting' appended to it). We're not
> using transactions with these scans. Is there anything we can do to
> prevent the pausing?
>
>
have you set ```max_standby_streaming_delay``? The default is 30
seconds, which means that this will be the maximum time allowed for a
replication lag caused by a conflicting query.
You can use ``hot_standby_feedback = on``, but the downside will be more
bloat on the tables.
Regards, Andreas
--
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com
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: andreas@a-kretschmer.de
Subject: Re: Non-pausing table scan on 9.6 replica?
In-Reply-To: <af14a041-eb0d-05f2-8d84-82f6579df168@a-kretschmer.de>
References: <CAEO096oCNF+Hg08SmcrRGPhnVA6StgiCw7HbOUULPN8i8o3=gQ@mail.gmail.com> <af14a041-eb0d-05f2-8d84-82f6579df168@a-kretschmer.de>
* 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