Re: [BUG] Uninitializaed configOut.leafType used. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUG] Uninitializaed configOut.leafType used.
Date
Msg-id 9796.1573672431@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUG] Uninitializaed configOut.leafType used.  (Andres Freund <andres@anarazel.de>)
List pgsql-bugs
Andres Freund <andres@anarazel.de> writes:
> It certainly could be more obvious. I'm not a fan of the spgist code :(.

Yeah.  The claimed problem is unreachable, because the only way to get
there is for configOutLefttype/configOutRighttype to have been set to
something valid by a previous execution of the SPGIST_CONFIG_PROC case.
However, if the proclist members don't appear in numerical sequence,
we'd get a bogus failure because the "ok = false" path would be taken.
That "if" is true normally because of the way the catcache works, but
I think it's possible to make it fail if you disable system index usage.
Not a realistic scenario in practice, but less robust than I'd like.
Can't get terribly excited about fixing it though.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Mukesh Chhatani
Date:
Subject: Re: BUG #16109: Postgres planning time is high across version - 10.6vs 10.10
Next
From: Thomas Munro
Date:
Subject: Re: BUG #16104: Invalid DSA Memory Alloc Request in Parallel Hash