pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Florents Tselai <florents.tselai@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Cc: Ron <ronljohnsonjr@gmail.com>
Subject: Re: Force re-compression with lz4
Date: Mon, 18 Oct 2021 16:32:22 +0900
Message-ID: <YW0jBhWs5sQRNbZV@paquier.xyz> (raw)
In-Reply-To: <41762F5E-ED52-4F39-9C86-46D75F125F55@gmail.com>
References: <EDA6D3AC-7B66-46CB-821E-7F2E8FBBFAC0@gmail.com>
	<CABUevEz2XBb-1WKDp4zVjmvj0ro8G0To_C18a_keCdfFf8LsPQ@mail.gmail.com>
	<dcb6fb5e-844a-0e44-2b1b-879e8a49ac97@aklaver.com>
	<08686473-CF87-4B7B-80D1-71B0FA97C1E5@gmail.com>
	<YW0DklWY+K3ocQA2@paquier.xyz>
	<41762F5E-ED52-4F39-9C86-46D75F125F55@gmail.com>

On Mon, Oct 18, 2021 at 09:57:11AM +0300, Florents Tselai wrote:
> Oh, that’s good to know then. So besides ALTER COMPRESSION for
> future inserts there’s not much one can do for pre-existing values

The posting style of the mailing list is to not top-post, so if you
could avoid breaking the logic of the thread, that would be nice :)

> I think it makes sense to update/ add more info to the docs on this
> as well, since other people in the thread expected this to work that
> way too.

There is some documentation, as changing the compression for an
existing table is part of ALTER TABLE:
https://www.postgresql.org/docs/current/sql-altertable.html

"This does not cause the table to be rewritten, so existing data may
still be compressed with other compression methods. If the table is
restored with pg_restore, then all values are rewritten with the
configured compression method."

> Maybe at some point, even allow an explicit option to be defined during VACUUM ? 

That's a part where we disagreed as it should not be VACUUM's work to
do that.  The option would have a limited impact as it comes to users
that would do a one-time operation most likely part of an upgrade, so
I don't think that this would be adapted to have anyway.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (18+ messages)  latest in thread

Message-ID: <YW0jBhWs5sQRNbZV@paquier.xyz>
Permalink:  ../YW0jBhWs5sQRNbZV@paquier.xyz/
Also on:    postgresql.org/message-id/YW0jBhWs5sQRNbZV@paquier.xyz

 · 

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-general@postgresql.org
  Cc: michael@paquier.xyz, florents.tselai@gmail.com, adrian.klaver@aklaver.com, magnus@hagander.net, ronljohnsonjr@gmail.com
  Subject: Re: Force re-compression with lz4
  In-Reply-To: <YW0jBhWs5sQRNbZV@paquier.xyz>
  References: <EDA6D3AC-7B66-46CB-821E-7F2E8FBBFAC0@gmail.com> <CABUevEz2XBb-1WKDp4zVjmvj0ro8G0To_C18a_keCdfFf8LsPQ@mail.gmail.com> <dcb6fb5e-844a-0e44-2b1b-879e8a49ac97@aklaver.com> <08686473-CF87-4B7B-80D1-71B0FA97C1E5@gmail.com> <YW0DklWY+K3ocQA2@paquier.xyz> <41762F5E-ED52-4F39-9C86-46D75F125F55@gmail.com> <YW0jBhWs5sQRNbZV@paquier.xyz>

* 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