]> git.ipfire.org Git - thirdparty/postgresql.git/commit
postgres_fdw: Remove redundant check in semijoin_target_ok()
authorAlexander Korotkov <akorotkov@postgresql.org>
Tue, 25 Mar 2025 10:48:48 +0000 (12:48 +0200)
committerAlexander Korotkov <akorotkov@postgresql.org>
Tue, 25 Mar 2025 10:49:14 +0000 (12:49 +0200)
commitc5cf99e9e52e99400654aa51fe6aa5a8e89bab6f
treea48326b63b32cfcc77c100f5125006a9696c50b9
parent729fe699e61231a01d834078c0566830638440ee
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
contrib/postgres_fdw/postgres_fdw.c