From: | YeXiu <1518981153(at)qq(dot)com> |
---|---|
To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Feature Recommendations for Logical Subscriptions |
Date: | 2025-04-11 05:47:59 |
Message-ID: | tencent_30CB6C1EBE630FF83045542BDF806F7C4A08@qq.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Amit Kapila, Yes, as you mentioned, but I’d like to add that when using the exclusion method for newly added columns, there’s no need to modify the publication. This is similar to how fields are automatically synchronized when columns are unspecified during initial setup. This is also a key reason why this approach is valuable.
YeXiu
1518981153(at)qq(dot)com
原始邮件
发件人:Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
发件时间:2025年4月11日 12:00
收件人:Peter Smith <smithpb2250(at)gmail(dot)com>
抄送:YeXiu <1518981153(at)qq(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
主题:Re: Feature Recommendations for Logical Subscriptions
On Fri, Apr 11, 2025 at 3:40 AM Peter Smith wrote:
>
> FYI, the Column List documentation [1] says
> ------
> However, do not rely on this feature for security: a malicious
> subscriber is able to obtain data from columns that are not
> specifically published. If security is a consideration, protections
> can be applied at the publisher side.
> ------
>
> IIRC, this was something to do with how the COPY done by the initial
> table sync might be manipulated by a malicious subscriber. I think you
> can find more details about this in the original thread when Column
> Lists were introduced. e.g. try searching this [2] thread for the word
> "security".
>
The same thing applies here as well. The only key difference is user
convenience in two ways: (a) when there are a lot of columns, say 100
columns, and user would like to send all data except 2 columns, (b)
adding new columns to table would require users to again run the DDL
to change the column list.
These are primarily the two pain points YeXiu wants us to solve.
YeXiu, if I misunderstood your intention, feel free to add.
--
With Regards,
Amit Kapila.
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Smith | 2025-04-11 06:05:45 | Re: Proposal: Filter irrelevant change before reassemble transactions during logical decoding |
Previous Message | Tom Lane | 2025-04-11 05:37:24 | Re: Silence resource leaks alerts |