Re: Semi-join related bug in postgres_fdw

From: Rafia Sabih <rafia(dot)pghackers(at)gmail(dot)com>
To: Alexander Pyhalov <a(dot)pyhalov(at)postgrespro(dot)ru>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Semi-join related bug in postgres_fdw
Date: 2026-12-04 17:12:22
Message-ID: CA+FpmFc-VXEDxgRigGyLSg7g_053=vzKvanoAw5KzPMKCa2rWQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 4 Dec 2026 at 09:42, Alexander Pyhalov <a(dot)pyhalov(at)postgrespro(dot)ru>
wrote:

> Rafia Sabih писал(а) 2026-11-13 16:03:
> > Hello hackers,
> >
> > while working on a patch on postgres_fdw, I came across this bug,
> >
> > postgres_fdw is shipping a semi-join to the remote server even when
> > one of the quals is not shippable, and in doing so it is creating a
> > wrong sql which eventually errors out.
>
> Hi.
> Sorry for late reply, haven't noticed this message. But evidently I
> missed logic, related
> to local conds in build_tlist_to_deparse().
>
> The fix looks good to me.
>

Thanks for your review. I have added the thread to the commitfest.

> --
> Best regards,
> Alexander Pyhalov,
> Postgres Professional
>

--
Regards,
Rafia Sabih
CYBERTEC PostgreSQL International GmbH

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Rui Zhao 2026-12-04 17:28:28 Avoid logging dropped TOAST values with REPLICA IDENTITY FULL
Previous Message Sami Imseih 2026-12-04 16:56:54 Re: pgstat: Flush some statistics within running transactions, take 2