pgsql: Fix bugs in manipulation of PgBackendStatus.st_clienthostname.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix bugs in manipulation of PgBackendStatus.st_clienthostname.
Дата
Msg-id E1WVA14-0002xg-Lg@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix bugs in manipulation of PgBackendStatus.st_clienthostname.

Initialization of this field was not being done according to the
st_changecount protocol (it has to be done within the changecount increment
range, not outside).  And the test to see if the value should be reported
as null was wrong.  Noted while perusing uses of Port.remote_hostname.

This was wrong from the introduction of this code (commit 4a25bc145),
so back-patch to 9.1.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e83bee8ddcc75881002efb69a293b2b9d1d2be78

Modified Files
--------------
src/backend/postmaster/pgstat.c     |    9 +++++----
src/backend/utils/adt/pgstatfuncs.c |    3 ++-
2 files changed, 7 insertions(+), 5 deletions(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix bug in the new GIN incomplete-split code.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix bugs in manipulation of PgBackendStatus.st_clienthostname.