Hi,

On Sat, Nov28, 2026 at 04:10 AM Álvaro Herrera wrote:
Hello

Antonin just posted a patch to get rid of the function in $SUBJECT, in
a thread that's not obviously related to that. I'm posting it again in
a new thread for visibility, with some cosmetic changes by me.

I think this is pretty straightforward, so I intend to push it early
next week.

+1 for moving the filter to the output plugin.

I have a few comments:

1.
+ * If the given RelFileLocator matches one of the locators being processed by + * REPACK, return true to have this record be skipped by decoding. Otherwise
+ * return false.

The comment has the return value inverted; that is, when the locator matches one of the locators being processed by REPACK, the function returns false (so it is decoded), and returns true otherwise.

2.

cluster_rel() in repack.c still has a comment referencing change_useless_for_repack().

3.

The patch does not call the callback in DecodeTruncate(). Since thedocumentation describes this as a generic callback, it would be better to allowfiltering TRUNCATE as well.

4.

+typedef bool (*LogicalDecodeFilterByRelFileLocator)

Since all other callback ends with "CB", I think it would be better rename this to LogicalDecodeFilterByRelFileLocatorCB to be consistent.

--
Best Regards,
Zhijie Hou


Reply via email to