Re: Semi-join related bug in postgres_fdw

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

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.
--
Best regards,
Alexander Pyhalov,
Postgres Professional

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Suraj Kharage 2026-12-04 09:02:57 postgres_fdw: direct arguments of ordered-set aggregates are not checked for shippability
Previous Message Peter Eisentraut 2026-12-04 08:41:11 Re: several cases of float and integer mixup