pgsql: tableam: Provide helper functions for relation sizing.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: tableam: Provide helper functions for relation sizing.
Date: 2019-07-08 19:15:07
Message-ID: E1hkZ6R-0006Ic-Fx@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/554106b1163853757b72ce14d7db5050c32bfa6a

Modified Files
--------------
src/backend/access/heap/heapam_handler.c | 129 ++-----------------------
src/backend/access/table/tableam.c | 161 +++++++++++++++++++++++++++++++
src/include/access/tableam.h | 14 +++
3 files changed, 185 insertions(+), 119 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2019-07-08 23:31:19 pgsql: Remove unused C structure member
Previous Message Peter Eisentraut 2019-07-08 12:45:16 pgsql: doc: Clarify logical replication documentation