pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: David G. Johnston <david.g.johnston@gmail.com>
To: Lucas <root@sud0.nz>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: PostgreSQL 9.2 high replication lag
Date: Wed, 14 Jul 2021 07:30:51 +0200
Message-ID: <0d5784f69c8f3b61523917b7ee5ea12a042bf478.camel@cybertec.at> (raw)
In-Reply-To: <CAKFQuwayvL=PLFu=UxV5pBakJfiwLyqp33_cSc+VNb2UOS_q1w@mail.gmail.com>
References: <Z14WgPUs_T-sranXV8i1KakN-eGRgP7fFcKUR8wHJDmjR-V8tHXkIIVWPxEEUd69GBeQCCKD0BeFn4f9AKItYa22mk_DzQP0yKuhRoyXZCc=@sud0.nz>
	<B5g7l_o95sxd3u10ZW9YbVYupwvDDpGNz9EWJSmvBkSRSIPhExkEokHVe-bLHr8qQ1FVllhKA03L94NJrZ-iSTMC31TrFAzKN-aGPt4gy-g=@sud0.nz>
	<CAKFQuwayvL=PLFu=UxV5pBakJfiwLyqp33_cSc+VNb2UOS_q1w@mail.gmail.com>

On Tue, 2021-07-13 at 20:14 -0700, David G. Johnston wrote:
> On Tue, Jul 13, 2021 at 8:01 PM Lucas <root@sud0.nz> wrote:
> > According to the documentation, max_standby_streaming_delay is a configuration parameter
> > determining how long a standby server should wait before canceling queries that conflict
> >  with pending WAL entries received via streaming replication.
> > 
> > My question then is: Which queries, if the slave can only receive SELECTs?
> 
> The select queries...
> 
> Follow the link in the docs for max_stanbdy_steaming_delay to:
> 
> https://www.postgresql.org/docs/current/hot-standby.html#HOT-STANDBY-CONFLICT
> 
> for the details.

Perhaps you might find the following article interesting, where I tried to
discuss this topic in some depth:

https://www.cybertec-postgresql.com/en/streaming-replication-conflicts-in-postgresql/

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






view thread (14+ messages)  latest in thread

Message-ID: <0d5784f69c8f3b61523917b7ee5ea12a042bf478.camel@cybertec.at>
Permalink:  ../0d5784f69c8f3b61523917b7ee5ea12a042bf478.camel@cybertec.at/
Also on:    postgresql.org/message-id/0d5784f69c8f3b61523917b7ee5ea12a042bf478.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 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: laurenz.albe@cybertec.at, david.g.johnston@gmail.com, root@sud0.nz
  Subject: Re: PostgreSQL 9.2 high replication lag
  In-Reply-To: <0d5784f69c8f3b61523917b7ee5ea12a042bf478.camel@cybertec.at>
  References: <Z14WgPUs_T-sranXV8i1KakN-eGRgP7fFcKUR8wHJDmjR-V8tHXkIIVWPxEEUd69GBeQCCKD0BeFn4f9AKItYa22mk_DzQP0yKuhRoyXZCc=@sud0.nz> <B5g7l_o95sxd3u10ZW9YbVYupwvDDpGNz9EWJSmvBkSRSIPhExkEokHVe-bLHr8qQ1FVllhKA03L94NJrZ-iSTMC31TrFAzKN-aGPt4gy-g=@sud0.nz> <CAKFQuwayvL=PLFu=UxV5pBakJfiwLyqp33_cSc+VNb2UOS_q1w@mail.gmail.com> <0d5784f69c8f3b61523917b7ee5ea12a042bf478.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