From: Tom Lane <tgl@sss.pgh.pa.us>
To: AYahorau@ibagroup.eu
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-general@postgresql.org
Cc: MikalaiKeida@ibagroup.eu
Subject: Re: Active connections are terminated because of small wal_sender_timeout
Date: Wed, 31 Jul 2019 10:03:13 -0400
Message-ID: <23234.1564581793@sss.pgh.pa.us> (raw)
In-Reply-To: <OF3E6F262D.A2F0D9BD-ON43258448.002D780D-43258448.002FDEA0@iba.by>
References: <OF3FCFCE3E.F845043B-ON43258420.002A274A-43258420.002D512D@LocalDomain>
<OF22E93345.D55CA354-ON4325842E.002C1DDD-4325842E.002C40A1@iba.by>
<1174.1562335396@sss.pgh.pa.us>
<20190708074523.GE2709@paquier.xyz>
<OF3E6F262D.A2F0D9BD-ON43258448.002D780D-43258448.002FDEA0@iba.by>
AYahorau@ibagroup.eu writes:
>> I do not think anybody thinks this is a bug. Setting wal_sender_timeout
>> too small is a configuration mistake.
> Why is it a configuration mistake? This value is allowed to be set. There
> is no any restriction about it.
The fact that a parameter can be set does not mean that we guarantee that
every possible value will work for everybody. As an example, if you
configure work_mem to a few TB and then start getting OOM failures because
your machine can't actually support that, it's not a bug that we let you
set the value that high. The upper limit of what's usable is too variable
and too hard to determine, so we don't even try; it's on you to choose a
suitable setting for your situation. Similarly, the useful range of
wal_sender_timeout is hard to predict and is likely to be quite different
for different installations. We don't want to artificially constrain what
people can use, so the range of allowed settings *ought* to include some
values that are not practically useful in specific situations. Those
values might be just the right ones for someone else.
regards, tom lane
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: tgl@sss.pgh.pa.us, AYahorau@ibagroup.eu, michael@paquier.xyz, MikalaiKeida@ibagroup.eu
Subject: Re: Active connections are terminated because of small wal_sender_timeout
In-Reply-To: <23234.1564581793@sss.pgh.pa.us>
References: <OF3FCFCE3E.F845043B-ON43258420.002A274A-43258420.002D512D@LocalDomain> <OF22E93345.D55CA354-ON4325842E.002C1DDD-4325842E.002C40A1@iba.by> <1174.1562335396@sss.pgh.pa.us> <20190708074523.GE2709@paquier.xyz> <OF3E6F262D.A2F0D9BD-ON43258448.002D780D-43258448.002FDEA0@iba.by> <23234.1564581793@sss.pgh.pa.us>
* 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