From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make local copy of client hostnames in backend status array.
Date: Wed, 11 Apr 2018 21:01:16 +0000
Message-ID: <E1f6Mrk-00033Z-A1@gemulon.postgresql.org> (raw)
Make local copy of client hostnames in backend status array.
The other strings, application_name and query string, were snapshotted to
local memory in pgstat_read_current_status(), but we forgot to do that for
client hostnames. As a result, the client hostname would appear to change in
the local copy, if the client disconnected.
Backpatch to all supported versions.
Author: Edmund Horner
Reviewed-by: Michael Paquier
Discussion: https://www.postgresql.org/message-id/CAMyN-kA7aOJzBmrYFdXcc7Z0NmW%2B5jBaf_m%3D_-77uRNyKC9r%3DA%40ma...
Branch
------
REL9_5_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/fd2efda5d6f16a0476b41fe14de954549236f76a
Modified Files
--------------
src/backend/postmaster/pgstat.c | 7 +++++++
1 file changed, 7 insertions(+)
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: heikki.linnakangas@iki.fi
Subject: Re: pgsql: Make local copy of client hostnames in backend status array.
In-Reply-To: <E1f6Mrk-00033Z-A1@gemulon.postgresql.org>
References: <E1f6Mrk-00033Z-A1@gemulon.postgresql.org>
* 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