pgsql: Return NULL for checksum failures if checksums are not enabled - Mailing list pgsql-committers

From Magnus Hagander
Subject pgsql: Return NULL for checksum failures if checksums are not enabled
Date
Msg-id E1hGj9m-0005UV-6I@gemulon.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix thinko introduced by 82a5649 in slot.c
Next
From: Tom Lane
Date:
Subject: pgsql: Minor jsonpath fixes.