mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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>
This commit is contained in:
@ -2600,13 +2600,15 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
|
||||
<entry><structfield>checksum_failures</structfield></entry>
|
||||
<entry><type>bigint</type></entry>
|
||||
<entry>Number of data page checksum failures detected in this
|
||||
database</entry>
|
||||
database (or on a shared object), or NULL if data checksums are not
|
||||
enabled.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><structfield>checksum_last_failure</structfield></entry>
|
||||
<entry><type>timestamp with time zone</type></entry>
|
||||
<entry>Time at which the last data page checksum failure was detected in
|
||||
this database, or on a shared object.</entry>
|
||||
this database (or on a shared object), or NULL if data checksums are not
|
||||
enabled.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><structfield>blk_read_time</structfield></entry>
|
||||
|
Reference in New Issue
Block a user