mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Fix union for pgstat message types
The message type for temp files and for checksum failures were missing from the union. Due to the coding style used there was no compiler error when this happend. So change the code to actively use the union thereby producing a compiler error if the same mistake happens again, suggested by Tom Lane. Author: Julien Rouhaud Reported-By: Tomas Vondra Discussion: https://postgr.es/m/20190430163328.zd4rrlnbvgaqlcdz@development
This commit is contained in:
@ -560,7 +560,7 @@ typedef union PgStat_Msg
|
||||
PgStat_MsgResetcounter msg_resetcounter;
|
||||
PgStat_MsgResetsharedcounter msg_resetsharedcounter;
|
||||
PgStat_MsgResetsinglecounter msg_resetsinglecounter;
|
||||
PgStat_MsgAutovacStart msg_autovacuum;
|
||||
PgStat_MsgAutovacStart msg_autovacuum_start;
|
||||
PgStat_MsgVacuum msg_vacuum;
|
||||
PgStat_MsgAnalyze msg_analyze;
|
||||
PgStat_MsgArchiver msg_archiver;
|
||||
@ -569,6 +569,8 @@ typedef union PgStat_Msg
|
||||
PgStat_MsgFuncpurge msg_funcpurge;
|
||||
PgStat_MsgRecoveryConflict msg_recoveryconflict;
|
||||
PgStat_MsgDeadlock msg_deadlock;
|
||||
PgStat_MsgTempFile msg_tempfile;
|
||||
PgStat_MsgChecksumFailure msg_checksumfailure;
|
||||
} PgStat_Msg;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user