pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Return NULL for checksum failures if checksums are not enabled
Date: Wed, 17 Apr 2019 11:55:14 +0000
Message-ID: <E1hGj9m-0005UV-6I@gemulon.postgresql.org> (raw)

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



Message-ID: <E1hGj9m-0005UV-6I@gemulon.postgresql.org>
Permalink:  ../E1hGj9m-0005UV-6I@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hGj9m-0005UV-6I@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: magnus@hagander.net
  Subject: Re: pgsql: Return NULL for checksum failures if checksums are not enabled
  In-Reply-To: <E1hGj9m-0005UV-6I@gemulon.postgresql.org>
  References: <E1hGj9m-0005UV-6I@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox