postgresql/src
Alexander Korotkov 2260c7f6d9 Fixes for ChangeVarNodes_walker()
This commit fixes two bug in ChangeVarNodes_walker() function.

 * When considering RestrictInfo, walk down to its clauses based on the
   presense of relid to be deleted not just in clause_relids but also in
   required_relids.

 * Incrementally adjust num_base_rels based on the change of clause_relids
   instead of recalculating it using clause_relids, which could contain
   outer-join relids.

Reported-by: Richard Guo <guofenglinux@gmail.com>
Discussion: https://postgr.es/m/CAMbWs49PE3CvnV8vrQ0Dr%3DHqgZZmX0tdNbzVNJxqc8yg-8kDQQ%40mail.gmail.com
Author: Andrei Lepikhov <lepihov@gmail.com>
Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>
2025-04-29 14:34:44 +03:00
..
backend Fixes for ChangeVarNodes_walker() 2025-04-29 14:34:44 +03:00
bin pg_restore: Improve --help synopsis 2025-04-29 11:32:49 +02:00
common Fix INITCAP() word boundaries for PG_UNICODE_FAST. 2025-04-21 12:34:58 -07:00
fe_utils Fix incorrect format placeholders 2025-04-25 16:49:30 +02:00
include Remove circular #include's between wait_event.h and wait_event_types.h 2025-04-28 09:08:15 +09:00
interfaces Fix terminology in comment and message 2025-04-25 16:26:28 +02:00
makefiles Add support for basic NUMA awareness 2025-04-07 23:08:17 +02:00
pl Don't use double-quotes in #include's of system headers, redux. 2025-04-27 13:23:19 -04:00
port Match parameter in new function to earlier equivalents 2025-04-27 03:03:52 +07:00
template thread-safety: gmtime_r(), localtime_r() 2024-08-23 07:43:04 +02:00
test Fixes for ChangeVarNodes_walker() 2025-04-29 14:34:44 +03:00
timezone pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
tools pg_restore cleanups 2025-04-16 12:04:34 -04:00
tutorial Doc: simplify the tutorial's window-function examples. 2025-01-21 14:43:21 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Add support for basic NUMA awareness 2025-04-07 23:08:17 +02:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00