postgresql/src
David Rowley e1a0f6a983 Adjust overly strict Assert
3373c7155 changed how we determine EquivalenceClasses for relations and
added an Assert to ensure all relations mentioned in each EC's ec_relids
was a RELOPT_BASEREL.  However, the join removal code may remove a LEFT
JOIN and since it does not clean up EC members belonging to the removed
relations it can leave RELOPT_DEADREL rels in ec_relids.

Fix this by adjusting the Assert to allow RELOPT_DEADREL rels too.

Reported-by: sqlsmith via Andreas Seltenreich
Discussion: https://postgr.es/m/87y30r8sls.fsf@ansel.ydns.eu
2019-07-22 10:29:41 +12:00
..
backend Adjust overly strict Assert 2019-07-22 10:29:41 +12:00
bin Fix compilation warning of pg_basebackup with MinGW 2019-07-21 22:27:11 +09:00
common Use consistent style for checking return from system calls 2019-07-07 15:28:49 +02:00
fe_utils Use appendStringInfoString and appendPQExpBufferStr where possible 2019-07-04 13:01:13 +12:00
include Speed up finding EquivalenceClasses for a given set of rels 2019-07-21 17:30:58 +12:00
interfaces Fix inconsistencies and typos in the tree 2019-07-16 13:23:53 +09:00
makefiles Remove support for non-ELF BSD systems 2019-07-01 23:56:20 +01:00
pl Represent Lists as expansible arrays, not chains of cons-cells. 2019-07-15 13:41:58 -04:00
port Fix inconsistencies and typos in the tree 2019-07-16 13:23:53 +09:00
template Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
test Fix daterange canonicalization for +/- infinity. 2019-07-18 13:41:10 -07:00
timezone Silence compiler warning, hopefully. 2019-07-19 14:48:57 -04:00
tools Fix some inconsistencies in MSVC scripts 2019-07-13 16:51:31 +09:00
tutorial Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
.gitignore
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Remove support for non-ELF BSD systems 2019-07-01 23:56:20 +01:00
Makefile.shlib Remove support for non-ELF BSD systems 2019-07-01 23:56:20 +01:00
nls-global.mk Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00