Re: REPACK and naming - Mailing list pgsql-hackers

From Junwang Zhao
Subject Re: REPACK and naming
Date
Msg-id CAEG8a3LRvNtpqUGKYwxx+=vHW7rsDW+eqSVMP4auci=80os45w@mail.gmail.com
Whole thread Raw
In response to Re: REPACK and naming  (Ranier Vilela <ranier.vf@gmail.com>)
List pgsql-hackers
On Wed, Sep 17, 2025 at 9:01 PM Ranier Vilela <ranier.vf@gmail.com> wrote:
>
>
>
> Em ter., 16 de set. de 2025 às 13:40, Bruce Momjian <bruce@momjian.us> escreveu:
>>
>> I am starting to get worried about the confusing of adding a REPACK
>> command.  We already have a lot of confusion around vacuum and analyze:
>>
>> *  autoanalyze does vacuum and analyze
>> *  VACUUM FULL is much different from VACUUM
>>
>> It seems if we add REPACK as a command, it is somewhere between VACUUM
>> FULL and VACUUM in severity/impact.  Should we be rethinking the naming
>> in this area?
>
> SqlServer has similar feature.
> SHRINK

C++ vector has a shrink_to_fit method which seems to serve a similar purpose.

REPACK or REBUILD looks good to me, COMPACT, on the other hand, feels
more specific to the idea of consolidating free space within a page or block.

>
> best regards,
> Ranier Vilela



--
Regards
Junwang Zhao



pgsql-hackers by date:

Previous
From: Greg Burd
Date:
Subject: Re: [PATCH] Add tests for Bitmapset
Next
From: Fujii Masao
Date:
Subject: Re: pgbench: remove an unused function argument