diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2018-04-11 23:39:49 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2018-04-11 23:52:11 +0300 |
commit | 93b3d43dc1880b2dafb8ccbb16700dab5cc3c6e7 (patch) | |
tree | 8fadc3a0ec5d4cd452debe3fb360b6537aefd0c7 /src/backend/access/spgist/spgxlog.c | |
parent | 89c2ab34039864488b8a83c03d1b1d841adf4aaf (diff) |
Allocate enough shared string memory for stats of auxiliary processes.
This fixes a bug whereby the st_appname, st_clienthostname, and
st_activity_raw fields for auxiliary processes point beyond the end of
their respective shared memory segments. As a result, the application_name
of a backend might show up as the client hostname of an auxiliary process.
Backpatch to v10, where this bug was introduced, when the auxiliary
processes were added to the array.
Author: Edmund Horner
Reviewed-by: Michael Paquier
Discussion: https://www.postgresql.org/message-id/CAMyN-kA7aOJzBmrYFdXcc7Z0NmW%2B5jBaf_m%3D_-77uRNyKC9r%3DA%40mail.gmail.com
Diffstat (limited to 'src/backend/access/spgist/spgxlog.c')
0 files changed, 0 insertions, 0 deletions