From: Rui DeSousa <rui@crazybean.net>
To: Kurt Roeckx <kurt@roeckx.be>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Append only tables
Date: Sat, 21 Mar 2020 01:44:47 -0400
Message-ID: <7CBBAB2A-A8C4-47D6-9912-7B3AD6554EAF@crazybean.net> (raw)
In-Reply-To: <20200320215053.GH22330@roeckx.be>
References: <20200320215053.GH22330@roeckx.be>
> On Mar 20, 2020, at 5:50 PM, Kurt Roeckx <kurt@roeckx.be> wrote:
>
> Hi,
>
> I have a few tables that are append only. Thre are only gets insert
> and select queries, never update or delete.
>
> What I see is that every file is still being updated. It's
> currently about 500 GB big, and every of that almost 500 files has
> been touched the past 24 hours.
>
> (auto) vacuum is not happening on the table.
>
Vacuum is still required as the tuples need to be frozen. Have you vacuumed the table?
It could be the result of records being frozen during selects statements; select can freeze tuples that meet the criteria for being frozen.
I would recommend vacuuming the table to get the existing records frozen; then I believe you should see fewer updates to the all the base files.=
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: pgsql-admin@postgresql.org
Cc: rui@crazybean.net, kurt@roeckx.be, pgsql-admin@lists.postgresql.org
Subject: Re: Append only tables
In-Reply-To: <7CBBAB2A-A8C4-47D6-9912-7B3AD6554EAF@crazybean.net>
* 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