From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: tableam: Move heap specific logic from estimate_rel_size below t |
Date: | 2019-03-31 02:33:08 |
Message-ID: | E1hAQHU-0007cM-9z@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2019-03-31 12:28:33 | pgsql: Have pg_upgrade's Makefile honor NO_TEMP_INSTALL |
Previous Message | Tomas Vondra | 2019-03-31 01:33:17 | pgsql: Fix typo |