From: Joel Hedden <jhedden@apple.com>
To: pgsql-admin@postgresql.org
Subject: 9.3.2 on Mac OS X: WAL Sender never exits on SIGUSR2 when pg_receivexlog is connected
Date: Tue, 04 Feb 2014 21:44:23 -0800
Message-ID: <4272E166-96DD-4852-8921-B2C8F029A3F9@apple.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Hi,
I've been testing PostgreSQL 9.3.2 on Mac OS X (10.9.1), the EnterpriseDB release as well as my own modified source, and I'm seeing an issue that didn't affect 9.2.4. I connect a pg_receivexlog instance and have "hot_standby" archiving enabled, with "archive_command" defined correctly. When the WAL Sender process receives a SIGUSR2 from the postmaster (or me), it fails to shut down and pg_receivexlog remains connected. Upon inspection, it looks like the test for "sentPtr == MyWalSnd->flush" is always false at walsender.c:1058 where the wal sender should be shutting down. Replication and archiving seem to be working otherwise. Killing pg_receivexlog allows for the WAL Sender to then terminate.
I'm curious if this is a known issue. I have not tried testing the 9.3 HEAD code yet.
Thanks,
-Joel Hedden
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: jhedden@apple.com
Subject: Re: 9.3.2 on Mac OS X: WAL Sender never exits on SIGUSR2 when pg_receivexlog is connected
In-Reply-To: <4272E166-96DD-4852-8921-B2C8F029A3F9@apple.com>
* 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