postgresql/src/backend
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
..
access Fix nbtree metapage cache upgrade bug. 2019-07-18 13:22:56 -07:00
bootstrap Fix inconsistencies and typos in the tree 2019-07-16 13:23:53 +09:00
catalog Avoid using lcons and list_delete_first where it's easy to do so. 2019-07-17 11:15:34 -04:00
commands Use column collation for extended statistics 2019-07-20 16:37:37 +02:00
executor Further adjust SPITupleTable to provide a public row-count field. 2019-07-18 10:37:13 -04:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Fix more typos and inconsistencies in the tree 2019-06-17 16:13:16 +09:00
lib Fix inconsistencies in the code 2019-07-08 13:15:09 +09:00
libpq Represent Lists as expansible arrays, not chains of cons-cells. 2019-07-15 13:41:58 -04:00
main Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00
nodes Speed up finding EquivalenceClasses for a given set of rels 2019-07-21 17:30:58 +12:00
optimizer Adjust overly strict Assert 2019-07-22 10:29:41 +12:00
parser Remove no-longer-helpful reliance on fixed-size local array. 2019-07-21 11:42:11 -04:00
partitioning Represent Lists as expansible arrays, not chains of cons-cells. 2019-07-15 13:41:58 -04:00
po Translation updates 2019-06-17 15:30:20 +02:00
port Update stale comments, and fix comment typos. 2019-06-08 10:12:26 -07:00
postmaster Fix inconsistencies in the code 2019-07-08 13:15:09 +09:00
regex Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
replication Redesign the API for list sorting (list_qsort becomes list_sort). 2019-07-16 11:51:44 -04:00
rewrite Avoid using lcons and list_delete_first where it's easy to do so. 2019-07-17 11:15:34 -04:00
snowball Sync our Snowball stemmer dictionaries with current upstream 2019-07-04 13:26:48 +02:00
statistics Use column collation for extended statistics 2019-07-20 16:37:37 +02:00
storage Move some md.c-specific logic from smgr.c to md.c. 2019-07-17 15:00:22 +12:00
tcop Represent Lists as expansible arrays, not chains of cons-cells. 2019-07-15 13:41:58 -04:00
tsearch Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
utils Fix error in commit e6feef57. 2019-07-18 17:04:50 -07:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Get rid of jsonpath_gram.h and jsonpath_scanner.h 2019-03-20 11:13:34 +03:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00