pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: tableam: Move heap specific logic from estimate_rel_size below t
2+ messages / 2 participants
[nested] [flat]

* pgsql: tableam: Move heap specific logic from estimate_rel_size below t
@ 2019-03-31 02:33 Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2019-03-31 02:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: tableam: Move heap-specific logic from needs_toast_table below t
@ 2019-05-21 16:03 Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2019-05-21 16:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

tableam: Move heap-specific logic from needs_toast_table below tableam.

This allows table AMs to completely suppress TOAST table creation, or
to modify the conditions under which they are created.

Patch by me.  Reviewed by Andres Freund.

Discussion: http://postgr.es/m/CA+Tgmoa4O2n=yphqD2pERUnYmUO84bH1SqMsA-nSxBGsZ7gWfA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1171d7d58545f26a402f76a05936d572bf29d53b

Modified Files
--------------
src/backend/access/heap/heapam_handler.c | 53 ++++++++++++++++++++++++++++++++
src/backend/catalog/toasting.c           | 50 ++----------------------------
src/include/access/tableam.h             | 20 ++++++++++++
3 files changed, 76 insertions(+), 47 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-05-21 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-03-31 02:33 pgsql: tableam: Move heap specific logic from estimate_rel_size below t Andres Freund <andres@anarazel.de>
2019-05-21 16:03 pgsql: tableam: Move heap-specific logic from needs_toast_table below t Robert Haas <rhaas@postgresql.org>

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