pgsql: Return NULL for checksum failures if checksums are not enabled

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема pgsql: Return NULL for checksum failures if checksums are not enabled
Дата
Msg-id E1hGj9m-0005UV-6I@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Return NULL for checksum failures if checksums are not enabled

Returning 0 could falsely indicate that there is no problem. NULL
correctly indicates that there is no information about potential
problems.

Also return 0 as numbackends instead of NULL for shared objects (as no
connection can be made to a shared object only).

Author: Julien Rouhaud <rjuju123@gmail.com>
Reviewed-by: Robert Treat <rob@xzilla.net>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/252b707bc41cc9bf6c55c18d8cb302a6176b7e48

Modified Files
--------------
doc/src/sgml/monitoring.sgml         | 6 ++++--
src/backend/catalog/system_views.sql | 2 +-
src/backend/utils/adt/pgstatfuncs.c  | 7 +++++++
src/test/regress/expected/rules.out  | 2 +-
4 files changed, 13 insertions(+), 4 deletions(-)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix thinko introduced by 82a5649 in slot.c
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Minor jsonpath fixes.