pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Marc Millas <marc.millas@mokadb.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: locks within select
Date: Tue, 14 Dec 2021 18:14:22 +0100
Message-ID: <86b7e09ff47c45f4455bc1421878ff33d505049c.camel@cybertec.at> (raw)
In-Reply-To: <CADX_1abCAs4airzsqdjY_=gK2nUQkuWodCifWeAgY31Ft88zbw@mail.gmail.com>
References: <CADX_1abA6Ykusa4m2WPv6wHfH1ZoCG=gZ+VJS2EFe0HaGB_1Rw@mail.gmail.com>
	<CAKFQuwbPCNFALoj5vsR5ONYfMEUwzgP8OTjT1Ud=bvZZQLDWag@mail.gmail.com>
	<CADX_1abCAs4airzsqdjY_=gK2nUQkuWodCifWeAgY31Ft88zbw@mail.gmail.com>

On Tue, 2021-12-14 at 13:38 +0100, Marc Millas wrote:
> but... when you do setup a streaming replication, there is, in postgresql.conf, a variable: 
> max_standby_streaming_delay = 30s # max delay before canceling queries when reading streaming WAL;
> 
> as the secondary is, by nature, read only, I was wondering why it can be necessary to cancel a read request...

Perhaps this can explain some of what is going on:

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

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






view thread (6+ messages)  latest in thread

Message-ID: <86b7e09ff47c45f4455bc1421878ff33d505049c.camel@cybertec.at>
Permalink:  ../86b7e09ff47c45f4455bc1421878ff33d505049c.camel@cybertec.at/
Also on:    postgresql.org/message-id/86b7e09ff47c45f4455bc1421878ff33d505049c.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, marc.millas@mokadb.com, david.g.johnston@gmail.com
  Subject: Re: locks within select
  In-Reply-To: <86b7e09ff47c45f4455bc1421878ff33d505049c.camel@cybertec.at>
  References: <CADX_1abA6Ykusa4m2WPv6wHfH1ZoCG=gZ+VJS2EFe0HaGB_1Rw@mail.gmail.com> <CAKFQuwbPCNFALoj5vsR5ONYfMEUwzgP8OTjT1Ud=bvZZQLDWag@mail.gmail.com> <CADX_1abCAs4airzsqdjY_=gK2nUQkuWodCifWeAgY31Ft88zbw@mail.gmail.com> <86b7e09ff47c45f4455bc1421878ff33d505049c.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