Re: More issues with expressions always false (no patch) - Mailing list pgsql-hackers

From Andreas Karlsson
Subject Re: More issues with expressions always false (no patch)
Date
Msg-id eeb53239-e34e-0dbe-ff3d-9c9a60cf7a1c@proxel.se
Whole thread Raw
In response to Re: More issues with expressions always false (no patch)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 12/20/19 10:34 PM, Tom Lane wrote:
> I think the "useless" free
> is cheap insurance against a permanent memory leak, as well as more
> like the coding in nearby functions like RelationGetIndexAttrBitmap.
> I wouldn't change it.

Good point, if there is a pattern it is good to follow it. But I am 
pretty sure that the other issue Ranier's static analysis discovered is 
a real bug and not just about shaving off a virtually no clock cycles 
(but I am not 100% sure my fix is correct). Will submit it to the 
commitfest so people can take a look.

Andreas



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: xact_start for walsender & logical decoding not updated
Next
From: Robert Haas
Date:
Subject: our checks for read-only queries are not great