pgsql: Make local copy of client hostnames in backend status array.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Make local copy of client hostnames in backend status array.
Дата
Msg-id E1f6Mrk-00033X-9s@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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%40mail.gmail.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/74dc05e01e5a195e432c6bd31f6504eb24b8316b

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


В списке 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.