Re: POC: converting Lists into arrays - Mailing list pgsql-hackers

From Oleksandr Shulgin
Subject Re: POC: converting Lists into arrays
Date
Msg-id CACACo5TL611A_BBmAXCSq5t8LjvkmipMzJo+7ejTo9b937Xoqg@mail.gmail.com
Whole thread Raw
In response to Re: POC: converting Lists into arrays  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Jul 2, 2019 at 5:12 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Oleksandr Shulgin <oleksandr.shulgin@zalando.de> writes:
> Not related to the diff v6..v7, but shouldn't we throw additionally a
> memset() with '\0' before calling pfree():

I don't see the point of that.  In debug builds CLOBBER_FREED_MEMORY will
take care of it, and in non-debug builds I don't see why we'd expend
the cycles.

This is what I was wondering about, thanks for providing a reference.

--
Alex

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: TopoSort() fix
Next
From: David Rowley
Date:
Subject: Re: Run-time pruning for ModifyTable