Re: BUG #16329: Valgrind detects an invalid read when building a gist index with buffering
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: Pavel Borisov <pashkin.elfe@gmail.com>, pgsql-bugs@lists.postgresql.org,
kyzevan23@mail.ru
Date: 2023-03-30T11:47:29Z
Lists: pgsql-bugs
Alexander Lakhin <exclusion@gmail.com> writes: > As to that concrete place, I would incline to improve the test while it stays > in line with other tests, but I lack a whole picture of the gist testing. > It doesn't seem to me that the regress/sql/gist.sql is too comprehensive. > I've just looked at the scan-build's results and found 9 warnings related to > gist. A quick glance at the code confirms that there are indeed > interesting cases, which are not exercised for now (e.g., call > gistRelocateBuildBuffersOnSplit() with > IndexRelationGetNumberOfKeyAttributes(r) > 1). > So if I could prove that 2-3 of them are really bugs during the next week, > maybe then assess that test change alongside with others (if any). > (Maybe we'll want to build that index over different columns, for example.) OK, there's certainly no urgency. regards, tom lane
Commits
-
Fix dereference of dangling pointer in GiST index buffering build.
- d2a1d4b190ec 12.15 landed
- b5c6776c1127 11.20 landed
- a1904c9ce56a 14.8 landed
- 8e5eef50c5b4 16.0 landed
- 2dc77adc768e 15.3 landed
- 2adb6adad5f8 13.11 landed
-
Fix GiST buffering build to work when there are included columns.
- 962ab473ec3d 13.1 landed
- 371668a8389d 14.0 landed
- 12945874ebd6 12.5 landed
-
Re-allow testing of GiST buffered builds.
- 78c0b6ed273a 14.0 landed
-
Add support for building GiST index by sorting.
- 16fa9b2b30a3 14.0 cited