Provide a way block-level table AMs could re-use acquire_sample_rows()
Alexander Korotkov <akorotkov@postgresql.org>
Provide a way block-level table AMs could re-use acquire_sample_rows() While keeping API the same, this commit provides a way for block-level table AMs to re-use existing acquire_sample_rows() by providing custom callbacks for getting the next block and the next tuple. Reported-by: Andres Freund Discussion: https://postgr.es/m/20240407214001.jgpg5q3yv33ve6y3%40awork3.anarazel.de Reviewed-by: Pavel Borisov
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam_handler.c | modified | +12 −0 |
| src/backend/commands/analyze.c | modified | +26 −16 |
| src/include/access/tableam.h | modified | +13 −0 |
| src/include/commands/vacuum.h | modified | +53 −3 |
| src/tools/pgindent/typedefs.list | modified | +2 −0 |
Discussion
- Table AM Interface Enhancements 104 messages · 2023-11-23 → 2024-06-22