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: Fix union for pgstat message types
Date: Wed, 01 May 2019 10:34:52 +0000
Message-ID: <E1hLmZg-000556-Uz@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/659e53498c3c04e4f400323c02bef98fe8d13ec8

Modified Files
--------------
src/backend/postmaster/pgstat.c | 41 ++++++++++++++++++++++-------------------
src/include/pgstat.h            |  4 +++-
2 files changed, 25 insertions(+), 20 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1hLmZg-000556-Uz@gemulon.postgresql.org>
Permalink:  ../E1hLmZg-000556-Uz@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hLmZg-000556-Uz@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: Fix union for pgstat message types
  In-Reply-To: <E1hLmZg-000556-Uz@gemulon.postgresql.org>
  References: <E1hLmZg-000556-Uz@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