tableam: Provide helper functions for relation sizing.
Robert Haas <rhaas@postgresql.org>
tableam: Provide helper functions for relation sizing. Most block-based table AMs will need the exact same implementation of the relation_size callback as the heap, and if they use a standard page layout, they will likely need an implementation of the relation_estimate_size callback that is very similar to that of the heap. Rearrange to facilitate code reuse. Patch by me, reviewed by Michael Paquier, Daniel Gustafsson, and Álvaro Herrera. Discussion: http://postgr.es/m/CA+TgmoZ6DBPnP1E-vRpQZUJQijJFD54F+SR_pxGiAAS-MyrigA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam_handler.c | modified | +10 −119 |
| src/backend/access/table/tableam.c | modified | +161 −0 |
| src/include/access/tableam.h | modified | +14 −0 |
Discussion
- tableam: abstracting relation sizing code 18 messages · 2019-06-06 → 2019-07-08