On Mon, Sep 21, 2026 at 11:53 AM Amit Kapila <[email protected]> wrote:
>
> On Fri, Sep 18, 2026 at 6:13 AM Masahiko Sawada <[email protected]> wrote:
> >
> > Thanks for reviewing the patch!
> >
> > While I also think the patch is in good shape, I'd like to raise a
> > security risk this feature might introduce, particularly around
> > pg_logical_emit_message():
> >
>
> Review comments:
> ===============
>

One more comment:
+static void
+apply_handle_message(StringInfo s)
+{
+ LogicalRepMessageData msg;
+
+ /* Tablesync worker should never receive MESSAGE */
+ if (am_tablesync_worker())
+ ereport(ERROR,
+ errcode(ERRCODE_PROTOCOL_VIOLATION),
+ errmsg_internal("tablesync worker received a MESSAGE message"));

I think we should have a similar ERROR for parallel apply worker. I
don't think this message can reach there but we should protect it like
above.

-- 
With Regards,
Amit Kapila.


Reply via email to