| From: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com> |
|---|---|
| To: | 'Álvaro Herrera' <alvherre(at)kurilemu(dot)de>, Zhijie Hou <houzhijie22(at)gmail(dot)com> |
| Cc: | Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Antonin Houska <ah(at)cybertec(dot)at> |
| Subject: | RE: logical decoding: removing change_useless_for_repack() |
| Date: | 2026-11-30 01:54:49 |
| Message-ID: | OS7PR01MB18317F1F6E84584E7ECEA1A9CF54E2@OS7PR01MB18317.jpnprd01.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
Thanks for posting and updating patches. +1 to introduce the filter.
Few comments:
01.
```
/*
* rlocator-based filter callback for REPACK (CONCURRENTLY)
*
* If the given RelFileLocator matches one of the locators being processed by
* REPACK, return false to have this record be skipped by decoding. Otherwise
* return true.
*/
static bool
repack_filter_by_rlocator(struct LogicalDecodingContext *ctx,
RelFileLocator rlocator)
```
This comment seems opposite. According to the doc, the filter must return true
if the change is not needed.
02.
Should we add description for TOAST handling? Since the filter works for the
physical layer it may not be enough to check only the RelFileLocator of a main
relation.
Best regards,
Hayato Kuroda
FUJITSU LIMITED
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Guo | 2026-11-30 02:22:55 | Re: Simplify the uniqueness proof for self-join elimination |
| Previous Message | Tomás Senart | 2026-11-30 01:29:05 | Re: [PATCH v1] Avoid deforming unused trailing columns in COPY TO |