postgresql/src/backend
Tom Lane 0ff8f521d4 Fix wrong order of operations in inheritance_planner.
When considering a partitioning parent rel, we should stop processing that
subroot as soon as we've done adjust_appendrel_attrs and any securityQuals
updates.  The rest of this is unnecessary, and indeed adding duplicate
subquery RTEs to the subroot is *wrong*.  As the code stood, the children
of that partition ended up with two sets of copied subquery RTEs, confusing
matters greatly.  Even more hilarity ensued if all of the children got
excluded by constraint exclusion, so that the extra RTEs didn't make it
back into the parent rtable.

Per fuzz testing by Andreas Seltenreich.  Back-patch to v11 where this
got broken (by commit 0a480502b, it looks like).

Discussion: https://postgr.es/m/87va8g7vq0.fsf@ansel.ydns.eu
2018-08-11 15:53:20 -04:00
..
access Fix typo in SP-GiST error message 2018-08-10 17:34:07 +03:00
bootstrap Message wording and pluralization improvements 2018-05-17 23:05:27 -04:00
catalog Add table relcache invalidation to index builds. 2018-08-03 14:45:02 -07:00
commands Restrict access to reindex of shared catalogs for non-privileged users 2018-08-09 09:40:27 +02:00
executor Revert changes in execMain.c from commit 16828d5c02 2018-08-10 16:09:13 -04:00
foreign Remove bogus "extern" annotations on function definitions. 2018-02-19 12:07:44 -05:00
jit LLVMJIT: Check for 'noinline' attribute in recursively inlined functions. 2018-07-25 16:40:43 -07:00
lib doc: Update redirecting links 2018-07-16 10:44:06 +02:00
libpq Remove support for tls-unique channel binding. 2018-08-05 13:44:26 +03:00
main Update copyright for 2018 2018-01-02 23:30:12 -05:00
nodes Fix run-time partition pruning for appends with multiple source rels. 2018-08-01 19:42:53 -04:00
optimizer Fix wrong order of operations in inheritance_planner. 2018-08-11 15:53:20 -04:00
parser Fix INSERT ON CONFLICT UPDATE through a view that isn't just SELECT *. 2018-08-04 19:38:58 -04:00
partitioning Remove bogus Assert in make_partitionedrel_pruneinfo(). 2018-08-08 20:02:33 -04:00
po Translation updates 2018-08-06 20:09:07 +02:00
port Pad semaphores to avoid false sharing. 2018-07-25 11:00:42 +12:00
postmaster Don't run atexit callbacks in quickdie signal handlers. 2018-08-08 19:10:35 +03:00
regex Clean up warnings from -Wimplicit-fallthrough. 2018-05-01 19:35:08 -04:00
replication Don't run atexit callbacks in quickdie signal handlers. 2018-08-08 19:10:35 +03:00
rewrite Fix INSERT ON CONFLICT UPDATE through a view that isn't just SELECT *. 2018-08-04 19:38:58 -04:00
snowball Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
statistics Fix bogus code for extracting extended-statistics data from syscache. 2018-05-02 12:23:00 -04:00
storage Fix inadequate buffer locking in FSM and VM page re-initialization. 2018-07-13 11:53:11 -04:00
tcop Don't run atexit callbacks in quickdie signal handlers. 2018-08-08 19:10:35 +03:00
tsearch Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
utils Handle parallel index builds on mapped relations. 2018-08-10 13:01:33 -07:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
nls.mk Translation updates 2018-08-06 20:09:07 +02:00