public inbox for [email protected]  
help / color / mirror / Atom feed
From: Álvaro Herrera <[email protected]>
To: Marcos Pegoraro <[email protected]>
Cc: David Klika <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Subject: Re: Adding REPACK [concurrently]
Date: Sat, 6 Dec 2025 11:58:36 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAB-JLwbvqNnTmgZsE3T-KbAOO5w04uwdeYfSVtdumPfdSG6NJQ@mail.gmail.com>

Hello,

On 2025-Dec-04, Marcos Pegoraro wrote:

> Em qui., 4 de dez. de 2025 às 12:43, Álvaro Herrera <[email protected]>
> escreveu:
> 
> > So if you're trying to do this, the number of problematic pages must
> > be large.
> 
> Not necessarily. I have some tables where I like to use CLUSTER every
> 2 or 3 months, to reorganize the data based on an index and
> consequently load fewer pages with each call. These tables don't have
> more than 2 or 3% of dead records, but they are quite disorganized
> from the point of view of that index, since the inserted and updated
> records don't follow the order I determined.

I don't understand what does this have to do with what David was
proposing.  I mean, you're right: if all you want is to CLUSTER, you may
not have an enormous number of pages to get rid of.  But how can you use
the technique he proposes to deal with reordering tuples?  If you just
move the tuples from the end of the table to where some random hole has
appeared, you've not clustered the table at all.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"People get annoyed when you try to debug them."  (Larry Wall)





view thread (18+ messages)  latest in thread

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], [email protected], [email protected], [email protected]
  Subject: Re: Adding REPACK [concurrently]
  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