pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Allocate enough shared string memory for stats of auxiliary proc
2+ messages / 1 participants
[nested] [flat]

* pgsql: Allocate enough shared string memory for stats of auxiliary proc
@ 2018-04-11 21:01  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2018-04-11 21:01 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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%40ma...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/811969b218ac2e8030dfbbb05873344967461618

Modified Files
--------------
src/backend/postmaster/pgstat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Allocate enough shared string memory for stats of auxiliary proc
@ 2018-04-11 21:01  Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2018-04-11 21:01 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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%40ma...

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/93b3d43dc1880b2dafb8ccbb16700dab5cc3c6e7

Modified Files
--------------
src/backend/postmaster/pgstat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-04-11 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-11 21:01 pgsql: Allocate enough shared string memory for stats of auxiliary proc Heikki Linnakangas <heikki.linnakangas@iki.fi>
2018-04-11 21:01 pgsql: Allocate enough shared string memory for stats of auxiliary proc Heikki Linnakangas <heikki.linnakangas@iki.fi>

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