Re: CLUSTER details

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Bernd Eckenfels <ecki(at)zusammenkunft(dot)net>
Cc: "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: CLUSTER details
Date: 2024-06-09 13:31:56
Message-ID: CAKFQuwYt3UaSa8YjDSVvU=aKtoXvcORBZrQi0Rd1aTbUg+PxUg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Friday, June 7, 2024, Bernd Eckenfels <ecki(at)zusammenkunft(dot)net> wrote:
>
>
> As a user I want to know if CLUSTERing also frees space, and since it
> has the effect of doing so (and not pre-allocates, which is a bit odd),why
> not mention it.
>

Yeah, it doesn’t make it clear that rewriting the table means that only
live tuples are written into the new file and thus there is a size
difference before and after equal to the dead tuples not written.

David J.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Laurenz Albe 2024-06-10 09:03:07 Re: Suggestion about tcp_keepalives_idle parameter in the document
Previous Message Euler Taveira 2024-06-08 02:53:40 Re: DROP TRIGGER lock