Re: An oversight in ExecInitAgg for grouping sets - Mailing list pgsql-hackers

From David Rowley
Subject Re: An oversight in ExecInitAgg for grouping sets
Date
Msg-id CAApHDvqOnG67BS8SuqT55MvfNmZicc1_aPfBk+Nr-Sw5WcPLWA@mail.gmail.com
Whole thread Raw
In response to Re: An oversight in ExecInitAgg for grouping sets  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: An oversight in ExecInitAgg for grouping sets
List pgsql-hackers
On Tue, 3 Jan 2023 at 10:25, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The thing that I find really distressing here is that it's been
> like this for years and none of our automated testing caught it.
> You'd have expected valgrind testing to do so ... but it does not,
> because we've never marked that word NOACCESS.  Maybe we should
> rethink that?  It'd require making mcxt.c do some valgrind flag
> manipulations so it could access the hdrmask when appropriate.

Yeah, that probably could have been improved during the recent change.
Here's a patch for it.

I'm just doing a final Valgrind run on it now to check for errors.

David

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: meson oddities
Next
From: Gilles Darold
Date:
Subject: Re: fix and document CLUSTER privileges