Return NULL for checksum failures if checksums are not enabled
Magnus Hagander <magnus@hagander.net>
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>
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/monitoring.sgml | modified | +4 −2 |
| src/backend/catalog/system_views.sql | modified | +1 −1 |
| src/backend/utils/adt/pgstatfuncs.c | modified | +7 −0 |
| src/test/regress/expected/rules.out | modified | +1 −1 |