From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: tableam: relation creation, VACUUM FULL/CLUSTER, SET TABLESPACE.
Date: Fri, 29 Mar 2019 03:07:26 +0000
Message-ID: <E1h9hra-0000eL-4y@gemulon.postgresql.org> (raw)
tableam: relation creation, VACUUM FULL/CLUSTER, SET TABLESPACE.
This moves the responsibility for:
- creating the storage necessary for a relation, including creating a
new relfilenode for a relation with existing storage
- non-transactional truncation of a relation
- VACUUM FULL / CLUSTER's rewrite of a table
below tableam.
This is fairly straight forward, with a bit of complexity smattered in
to move the computation of xid / multixid horizons below the AM, as
they don't make sense for every table AM.
Author: Andres Freund
Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d25f519107bff602e1ebc81853fe592d020c118d
Modified Files
--------------
src/backend/access/heap/heapam_handler.c | 451 +++++++++++++++++++++++++++++++
src/backend/bootstrap/bootparse.y | 7 +-
src/backend/catalog/heap.c | 120 ++++----
src/backend/catalog/index.c | 11 +-
src/backend/catalog/storage.c | 88 ++++++
src/backend/commands/cluster.c | 342 ++---------------------
src/backend/commands/sequence.c | 30 +-
src/backend/commands/tablecmds.c | 180 ++++--------
src/backend/utils/cache/relcache.c | 77 +++---
src/include/access/tableam.h | 117 ++++++++
src/include/catalog/heap.h | 6 +-
src/include/catalog/storage.h | 3 +
src/include/utils/relcache.h | 3 +-
13 files changed, 856 insertions(+), 579 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: andres@anarazel.de
Subject: Re: pgsql: tableam: relation creation, VACUUM FULL/CLUSTER, SET TABLESPACE.
In-Reply-To: <E1h9hra-0000eL-4y@gemulon.postgresql.org>
References: <E1h9hra-0000eL-4y@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