From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: tableam: Provide helper functions for relation sizing.
Date: Mon, 08 Jul 2019 19:15:07 +0000
Message-ID: <E1hkZ6R-0006Ic-Fx@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: rhaas@postgresql.org
Subject: Re: pgsql: tableam: Provide helper functions for relation sizing.
In-Reply-To: <E1hkZ6R-0006Ic-Fx@gemulon.postgresql.org>
References: <E1hkZ6R-0006Ic-Fx@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox