postgresql/src/backend/postmaster
Heikki Linnakangas 811969b218 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
2018-04-11 23:39:49 +03:00
..
Makefile Revert "Allow on-line enabling and disabling of data checksums" 2018-04-09 19:03:42 +02:00
autovacuum.c Allow background workers to bypass datallowconn 2018-04-05 19:02:45 +02:00
bgworker.c Revert "Allow on-line enabling and disabling of data checksums" 2018-04-09 19:03:42 +02:00
bgwriter.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
checkpointer.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
fork_process.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pgarch.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pgstat.c Allocate enough shared string memory for stats of auxiliary processes. 2018-04-11 23:39:49 +03:00
postmaster.c Fix EXEC BACKEND + Windows builds for group privs 2018-04-07 19:01:43 -04:00
startup.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
syslogger.c Refactor dir/file permissions 2018-04-07 17:45:39 -04:00
walwriter.c Update copyright for 2018 2018-01-02 23:30:12 -05:00