pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: tableam: Move heap specific logic from estimate_rel_size below t
Date: Sun, 31 Mar 2019 02:33:08 +0000
Message-ID: <E1hAQHU-0007cM-9z@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/696d78469f3714a8159f7a145af1fe9179fe3291

Modified Files
--------------
src/backend/access/heap/heapam_handler.c | 113 +++++++++++++++++++++++++++++++
src/backend/optimizer/util/plancat.c     |  69 +++++++------------
src/include/access/tableam.h             |  35 ++++++++++
src/include/optimizer/plancat.h          |   1 +
4 files changed, 174 insertions(+), 44 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1hAQHU-0007cM-9z@gemulon.postgresql.org>
Permalink:  ../E1hAQHU-0007cM-9z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hAQHU-0007cM-9z@gemulon.postgresql.org

 · 

reply

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: andres@anarazel.de
  Subject: Re: pgsql: tableam: Move heap specific logic from estimate_rel_size below t
  In-Reply-To: <E1hAQHU-0007cM-9z@gemulon.postgresql.org>
  References: <E1hAQHU-0007cM-9z@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