| From: | Antonin Houska <ah(at)cybertec(dot)at> |
|---|---|
| To: | Mihail Nikalayeu <mihailnikalayeu(at)gmail(dot)com> |
| Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Robert Treat <rob(at)xzilla(dot)net> |
| Subject: | Re: Adding REPACK [concurrently] |
| Date: | 2025-12-08 07:35:53 |
| Message-ID: | 14628.1765179353@localhost |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Mihail Nikalayeu <mihailnikalayeu(at)gmail(dot)com> wrote:
> On Thu, Dec 4, 2025 at 6:43 PM Antonin Houska <ah(at)cybertec(dot)at> wrote:
> > v26 attached here. It's been rebased and reflects most of the feedback.
>
> Some comments on 0001-0002:
> 1)
>
> > cluster_rel(stmt->command, rel, indexOid, params);
> cluster_rel closes relation, and after it is dereferenced a few lines after.
> Technically it may be correct, but feels a little bit strange.
ok, will be fixed in the next version (supposedly later today).
> 2)
>
> > if (vacopts->mode == MODE_VACUUM)
> I think for better compatibility it is better to handle new value in
> if - (vacopts->mode == MODE_REPACK) to keep old cases unchanged
I suppose you mean vacuuming.c. We're considering removal of pg_repackdb from
the patchset, so let's decide on this later.
> 3)
>
> > case T_RepackStmt:
> > tag = CMDTAG_REPACK;
> > break;
>
> should we use instead:
>
> case T_RepackStmt:
> if (((RepackStmt *) parsetree)->command == REPACK_COMMAND_CLUSTER)
> tag = CMDTAG_CLUSTER;
> else
> tag = CMDTAG_REPACK;
> break;
>
> or delete CMDTAG_CLUSTER - since it not used anymore
LGTM, will include it in the next version.
> 4)
> "has been superceded by"
> typo
ok. (This may also be removed, as it's specific to pg_repackdb.)
--
Antonin Houska
Web: https://www.cybertec-postgresql.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chao Li | 2025-12-08 07:35:54 | Re: Fix LOCK_TIMEOUT handling in slotsync worker |
| Previous Message | Masahiko Sawada | 2025-12-08 07:23:09 | Re: Newly created replication slot may be invalidated by checkpoint |