tableam: Move heap specific logic from estimate_rel_size below tableam.
Andres Freund <andres@anarazel.de>
tableam: Move heap specific logic from estimate_rel_size below tableam. This just moves the table/matview[/toast] determination of relation size to a callback, and uses a copy of the existing logic to implement that callback for heap. It probably would make sense to also move the index specific logic into a callback, so the metapage handling (and probably more) can be index specific. But that's a separate task. Author: Andres Freund Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam_handler.c | modified | +113 −0 |
| src/backend/optimizer/util/plancat.c | modified | +25 −44 |
| src/include/access/tableam.h | modified | +35 −0 |
| src/include/optimizer/plancat.h | modified | +1 −0 |
Discussion
- Pluggable Storage - Andres's take 179 messages · 2018-07-03 → 2019-08-17