pgsql: Allocate enough shared string memory for stats of auxiliaryproc

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Allocate enough shared string memory for stats of auxiliaryproc
Дата
Msg-id E1f6Mrk-00033R-9K@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Fix ALTER TABLE .. ATTACH PARTITION ... DEFAULT
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Do not select new object OIDs that match recently-dead entries.