| From: | Mihail Nikalayeu <mihailnikalayeu(at)gmail(dot)com> |
|---|---|
| To: | Antonin Houska <ah(at)cybertec(dot)at> |
| 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-05 00:03:00 |
| Message-ID: | CADzfLwWFbXVN-QrKaVXvW96eYQD1AiRVCYd99nX7EQFG3q_yfg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hello, Antonin!
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.
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
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
4)
"has been superceded by"
typo
Best regards,
Mikhail.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Noah Misch | 2025-12-05 00:19:02 | Re: Inval reliability, especially for inplace updates |
| Previous Message | Corey Huinker | 2025-12-04 23:40:42 | Re: vacuumdb: add --dry-run |