From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Initialize unused ExprEvalStep fields.
Date: Mon, 29 Jan 2018 12:33:03 -0800
Message-ID: <20180129203303.bsln3mc3n4ojcc33@alap3.anarazel.de> (raw)
In-Reply-To: <32346.1517257019@sss.pgh.pa.us>
References: <E1egFhq-0005nE-KL@gemulon.postgresql.org>
<32346.1517257019@sss.pgh.pa.us>
Hi,
On 2018-01-29 15:16:59 -0500, Tom Lane wrote:
> > Also zero-initialize all scratch ExprEvalStep's allocated on the
> > stack, to avoid issues with similar future omissions of non-critial
> > data.
>
> Dunno that that's a good idea; it will also serve to hide valid warnings.
Possible, but I think it's more likely that new fields with default to
zero/NULL anyway. Zero initializing around allocations is a pretty
common thing in the PG codebase, so it does feel consistent to me.
Greetings,
Andres Freund
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: andres@anarazel.de, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Initialize unused ExprEvalStep fields.
In-Reply-To: <20180129203303.bsln3mc3n4ojcc33@alap3.anarazel.de>
References: <E1egFhq-0005nE-KL@gemulon.postgresql.org> <32346.1517257019@sss.pgh.pa.us> <20180129203303.bsln3mc3n4ojcc33@alap3.anarazel.de>
* 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