From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: postgres_fdw: Remove redundant check in semijoin_target_ok() |
Date: | 2025-03-25 10:54:17 |
Message-ID: | E1tx1vF-000uaz-16@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)mail(dot)gmail(dot)com
Author: Tender Wang <tndrwang(at)gmail(dot)com>
Reviewed-by: Alexander Pyhalov <a(dot)yhalov(at)postgrespro(dot)ru>
Backpatch-through: 17
Branch
------
REL_17_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/c5cf99e9e52e99400654aa51fe6aa5a8e89bab6f
Modified Files
--------------
contrib/postgres_fdw/postgres_fdw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2025-03-25 12:41:52 | pgsql: Small fixes for Add ALTER TABLE ... ALTER CONSTRAINT ... SET [NO |
Previous Message | Alexander Korotkov | 2025-03-25 10:54:12 | pgsql: postgres_fdw: Remove redundant check in semijoin_target_ok() |