public inbox for [email protected]  
help / color / mirror / Atom feed
From: Heikki Linnakangas <[email protected]>
To: Pavel Luzanov <[email protected]>
To: Peter Geoghegan <[email protected]>
Cc: Melanie Plageman <[email protected]>
Cc: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: PG17 optimizations to vacuum
Date: Tue, 3 Sep 2024 13:04:43 +0300
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<CAH2-Wz=pCtsB3v42RB5dLnzEn3tQLUJ8fJMn+si-9A8s6v=B1A@mail.gmail.com>
	<CAAKRu_aBthDxatwzR-wQ8bWfYehuxYgAO0g6AMPFyVgdOxfS4g@mail.gmail.com>
	<CAH2-Wznqbnc8en8+B26obp-pmTKXi_HS_h_yRt4HVtqLOCKxLQ@mail.gmail.com>
	<CAAKRu_YF9UeFnfsgDiFybAss2YQtmEHU+xjngqwmwwyQjCDvxQ@mail.gmail.com>
	<[email protected]>
	<[email protected]>
	<CAH2-Wzm7b-dJB7VChcdUZR9Mm6Wa5uY1k_2-h5U60XTUYdsF=w@mail.gmail.com>
	<[email protected]>
	<[email protected]>

On 03/09/2024 10:34, Pavel Luzanov wrote:
> On 03.09.2024 00:11, Heikki Linnakangas wrote:
>> Pavel, did you test v17 with checksums enabled and v16 with checksums 
>> disabled, by any chance?
> 
> Exactly, You are right!
> 
> My v16 cluster comes from the default Ubuntu distribution.
> I forgot that checksums disabled by default.
> But when I initialize the master cluster, I automatically set -k option.
> 
> More accurate results for the test:
> 
> CREATE TABLE t(id integer) WITH (autovacuum_enabled = off);
> INSERT INTO t SELECT gen.id FROM generate_series(1,3_500_000) gen(id);
> VACUUM FREEZE t;
> UPDATE t SET id = id + 1;
> VACUUM FREEZE VERBOSE t;
> 
> checksums disabled
> v16.4	WAL usage: 77437 records, 20832 full page images, 110654467 bytes
> master	WAL usage: 61949 records, 20581 full page images, 92549229 bytes
> 
> checksums enabled
> v16.4	WAL usage: 92848 records, 20985 full page images, 194863720 bytes
> master	WAL usage: 76520 records, 20358 full page images, 181867154 bytes

That's more like it :-)

> This a great optimization!
> 
> Peter, Melanie, Heikki, 
> Thank you very much for your help and time spent!
> Sorry for the noise before the release of PG17.

Thanks for the testing!

-- 
Heikki Linnakangas
Neon (https://neon.tech)







view thread (5+ messages)

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
  Subject: Re: PG17 optimizations to vacuum
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox