postgres_fdw: Remove redundant check in semijoin_target_ok()

Alexander Korotkov <akorotkov@postgresql.org>

Commit: c5cf99e9e52e99400654aa51fe6aa5a8e89bab6f
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2025-03-25T10:49:14Z
Releases: 17.5
postgres_fdw: Remove redundant check in semijoin_target_ok()

If a var belongs to the innerrel of the joinrel, it's not possible that
it belongs to the outerrel.  This commit removes the redundant check from
the if-clause but keeps it as an assertion.

Discussion: https://postgr.es/m/flat/CAHewXN=8aW4hd_W71F7Ua4+_w0=bppuvvTEBFBF6G0NuSXLwUw@mail.gmail.com
Author: Tender Wang <tndrwang@gmail.com>
Reviewed-by: Alexander Pyhalov <a.yhalov@postgrespro.ru>
Backpatch-through: 17

Files

PathChange+/−
contrib/postgres_fdw/postgres_fdw.c modified +2 −2

Discussion

Cited messages not in the archive: flat/CAHewXN=8aW4hd_W71F7Ua4+_w0=bppuvvTEBFBF6G0NuSXLwUw@mail.gmail.com