Re: Index AM API cleanup
Peter Eisentraut <peter@eisentraut.org>
On 04.04.25 14:17, Andres Freund wrote: > skink/valgrind just started to die during the main regression tests: > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=skink&dt=2025-04-04%2011%3A01%3A56 Thanks, fix is on the way. > The set of commits seem to point to the changes made as part of this thread. > > ==4163809== VALGRINDERROR-BEGIN > ==4163809== Invalid read of size 4 > ==4163809== at 0x6983FC: get_actual_variable_range (selfuncs.c:6354) > ==4163809== by 0x69E45F: ineq_histogram_selectivity (selfuncs.c:1130) > ==4163809== by 0x69E8C7: scalarineqsel (selfuncs.c:689) > ==4163809== by 0x69EB35: scalarineqsel_wrapper (selfuncs.c:1460) > ==4163809== by 0x69EBFD: scalargesel (selfuncs.c:1501) > ==4163809== by 0x6FE1AB: FunctionCall4Coll (fmgr.c:1213) > ==4163809== by 0x6FE77C: OidFunctionCall4Coll (fmgr.c:1449) > ==4163809== by 0x49C070: restriction_selectivity (plancat.c:1985) > ==4163809== by 0x43C8BB: clause_selectivity_ext (clausesel.c:848) > ==4163809== by 0x43CB3B: clauselist_selectivity_ext (clausesel.c:136) > ==4163809== by 0x43CEE3: clauselist_selectivity (clausesel.c:106) > ==4163809== by 0x4441D5: set_baserel_size_estimates (costsize.c:5342) > ==4163809== Address 0x0 is not stack'd, malloc'd or (recently) free'd > > > A bunch of other instances also started to die recently: > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=prion&dt=2025-04-04%2011%3A38%3A08 > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=canebrake&dt=2025-04-04%2011%3A30%3A09 > > Greetings, > > Andres Freund
Commits
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Relax ordering-related hardcoded btree requirements in planning
- a8025f544854 18.0 landed
-
Support non-btree indexes in get_actual_variable_range()
- 9ef1851685b7 18.0 landed
-
Convert PathKey to use CompareType
- 8123e91f5aeb 18.0 landed
-
Generalize index support in network support function
- be1cc9aaf5b7 18.0 landed
-
Update a code comment
- 190dc27998d5 18.0 landed
-
Allow non-btree unique indexes for matviews
- 9d6db8bec194 18.0 landed
-
Allow non-btree unique indexes for partition keys
- f278e1fe300a 18.0 landed
-
Add some opfamily support functions to lsyscache.c
- 7317e641268f 18.0 landed
-
Simplify and generalize PrepareSortSupportFromIndexRel()
- a359d3701991 18.0 landed
-
Generalize hash and ordering support in amapi
- ce62f2f2a0a4 18.0 landed
-
Drop opcintype from index AM strategy translation API
- 7d6d2c4bbd73 18.0 landed
-
Allow non-btree speculative insertion indexes
- b92c03342dcd 18.0 landed
-
Support non-btree indexes for foreign keys
- bfe21b760e03 18.0 landed
-
Integrate GistTranslateCompareType() into IndexAmTranslateCompareType()
- 622f678c1020 18.0 landed
-
Convert strategies to and from compare types
- c09e5a6a0165 18.0 landed
-
Move CompareType to separate header file
- 119fc30dd5bd 18.0 landed
-
Add get_opfamily_name() function
- 43493cceda2f 18.0 landed
-
Rename GistTranslateStratnum() to GistTranslateCompareType()
- a5709b5bb293 18.0 landed
-
Change gist stratnum function to use CompareType
- 630f9a43cece 18.0 landed
-
Rename RowCompareType to CompareType
- 6339f6468e82 18.0 landed
-
Improve slightly misleading internal error message
- 63e10988f870 18.0 landed
-
Track scan reversals in MergeJoin
- c594f1ad2ba7 18.0 landed
-
Track sort direction in SortGroupClause
- 0d2aa4d4937b 18.0 landed
-
Add stratnum GiST support function
- 7406ab623fee 18.0 cited
-
Add amgettreeheight index AM API routine
- 56fead44dcc7 18.0 landed