Re: BUG #17855: Uninitialised memory used when the name type value processed in binary mode of Memoize
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Alexander Lakhin <exclusion@gmail.com>,
Robert Haas <robertmhaas@gmail.com>, pgsql-bugs@lists.postgresql.org
Date: 2024-04-30T14:54:03Z
Lists: pgsql-bugs
David Rowley <dgrowleyml@gmail.com> writes: > I think this is a good idea. It seems reasonable that some other AM > might want to do the same thing. Also, it allows me to choose a better > name for these new IndexOnlyScanState fields. ioss_NameCStringAttNums > and ioss_NameCStringCount seems more on point. However, I couldn't > really decide which way around to have Name and CString. This version LGTM. The field names are fine, or at least I don't see a reason to prefer the other way. One trivial nit: should we make the array be AttrNumber* instead of int*? The space saving would be negligible (it being very unlikely that there's ever more than one entry), but AttrNumber is a more specific description of what it is. regards, tom lane
Commits
-
Ensure we allocate NAMEDATALEN bytes for names in Index Only Scans
- e3f9dcabd6f2 12.19 landed
- 0a34bcd0c23e 13.15 landed
- e6b0efc65e58 14.12 landed
- 52f21f928732 15.7 landed
- 68d358545037 16.3 landed
- a63224be49b8 17.0 landed