From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove forced toast recompression in VACUUM FULL/CLUSTER
Date: Mon, 14 Jun 2021 00:26:45 +0000
Message-ID: <E1lsaRB-000392-Ly@gemulon.postgresql.org> (raw)
Remove forced toast recompression in VACUUM FULL/CLUSTER
The extra checks added by the recompression of toast data introduced in
bbe0a81 is proving to have a performance impact on VACUUM or CLUSTER
even if no recompression is done. This is more noticeable with more
toastable columns that contain non-NULL values.
Improvements could be done to make those extra checks less expensive,
but that's not material for 14 at this stage, and we are not sure either
if the code path of VACUUM FULL/CLUSTER is adapted for this job.
Per discussion with several people, including Andres Freund, Robert
Haas, Álvaro Herrera, Tom Lane and myself.
Discussion: https://postgr.es/m/20210527003144.xxqppojoiwurc2iz@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/dbab0c07e5ba1f19a991da2d72972a8fe9a41bda
Modified Files
--------------
doc/src/sgml/ref/alter_table.sgml | 3 +-
src/backend/access/heap/heapam_handler.c | 61 +----------------------------
src/test/regress/expected/compression.out | 4 +-
src/test/regress/expected/compression_1.out | 2 +-
src/test/regress/sql/compression.sql | 2 +-
5 files changed, 6 insertions(+), 66 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: michael@paquier.xyz
Subject: Re: pgsql: Remove forced toast recompression in VACUUM FULL/CLUSTER
In-Reply-To: <E1lsaRB-000392-Ly@gemulon.postgresql.org>
References: <E1lsaRB-000392-Ly@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