From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: Re: pgsql: Unify SIGHUP handling between normal and walsender backends.
Date: Tue, 6 Jun 2017 16:23:19 -0700
Message-ID: <20170606232319.bkogyyi63oyodatg@alap3.anarazel.de> (raw)
In-Reply-To: <E1dI4BK-0004sn-Pj@gemulon.postgresql.org>
References: <E1dI4BK-0004sn-Pj@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
On 2017-06-06 02:25:18 +0000, Andres Freund wrote:
> Unify SIGHUP handling between normal and walsender backends.
>
> Because walsender and normal backends share the same main loop it's
> problematic to have two different flag variables, set in signal
> handlers, indicating a pending configuration reload. Only certain
> walsender commands reach code paths checking for the
> variable (START_[LOGICAL_]REPLICATION, CREATE_REPLICATION_SLOT
> ... LOGICAL, notably not base backups).
>
> This is a bug present since the introduction of walsender, but has
> gotten worse in releases since then which allow walsender to do more.
>
> A later patch, not slated for v10, will similarly unify SIGHUP
> handling in other types of processes as well.
>
> Author: Petr Jelinek, Andres Freund
> Reviewed-By: Michael Paquier
> Discussion: https://postgr.es/m/20170423235941.qosiuoyqprq4nu7v@alap3.anarazel.de
> Backpatch: 9.2-, bug is present since 9.0
>
> Branch
> ------
> REL9_6_STABLE
>
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/b8bd32a51f2dd451644175af7ae32f9bec3153f1
>
> Modified Files
> --------------
> src/backend/replication/walsender.c | 29 +++++++----------------------
> src/backend/tcop/postgres.c | 30 ++++++++++++++----------------
> src/backend/utils/init/globals.c | 1 +
> src/include/miscadmin.h | 5 +++++
> 4 files changed, 27 insertions(+), 38 deletions(-)
This commit, or one of its siblings, seemingly caused 'handfish' to fail
with a weird error message:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=handfish&dt=2017-06-06%2002%3A59%3A01
ccache gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -O2 -I. -I. -I../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o walsender.o walsender.c
Assembler messages:
Fatal error: can't create walsender.o: No such file or directory
<builtin>: recipe for target 'walsender.o' failed
I'm clueless what that could be caused by, given that the rest of the
9.6 animals do not seem to be scared.
Any ideas? So far I just plan to wait till the machine runs again on
its own.
- Andres
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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-committers@postgresql.org
Cc: andres@anarazel.de
Subject: Re: pgsql: Unify SIGHUP handling between normal and walsender backends.
In-Reply-To: <20170606232319.bkogyyi63oyodatg@alap3.anarazel.de>
References: <E1dI4BK-0004sn-Pj@gemulon.postgresql.org> <20170606232319.bkogyyi63oyodatg@alap3.anarazel.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