On Tue, Apr 30, 2019 at 6:33 PM Tomas Vondra
<[email protected]> wrote:
>
> On Sat, Mar 09, 2019 at 06:48:11PM +0000, Magnus Hagander wrote:
> >Track block level checksum failures in pg_stat_database
> >
> >This adds a column that counts how many checksum failures have occurred
> >on files belonging to a specific database. Both checksum failures
> >during normal backend processing and those created when a base backup
> >detects a checksum failure are counted.
> >
>
> It seems this commit forgot to add PgStat_MsgChecksumFailure to the
> PgStat_Msg union.

Oops, indeed.  That's embarrassing.  Trivial fix attached if that helps.
diff --git a/src/include/pgstat.h b/src/include/pgstat.h
index fa5dca3b87..c4cdd9e48f 100644
--- a/src/include/pgstat.h
+++ b/src/include/pgstat.h
@@ -569,6 +569,7 @@ typedef union PgStat_Msg
 	PgStat_MsgFuncpurge msg_funcpurge;
 	PgStat_MsgRecoveryConflict msg_recoveryconflict;
 	PgStat_MsgDeadlock msg_deadlock;
+	PgStat_MsgChecksumFailure msg_checksumfailure;
 } PgStat_Msg;
 
 

Reply via email to