diff options
| author | David Rowley | 2019-07-21 22:29:41 +0000 |
|---|---|---|
| committer | David Rowley | 2019-07-21 22:29:41 +0000 |
| commit | e1a0f6a983068675813074847e1d0d61bd37ac0e (patch) | |
| tree | 670240ac75e82c99834c721396c3f65cd2ed351d /src/test | |
| parent | 330cafdfaa11ebe53e3e59688acac1577ae0cb34 (diff) | |
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/[email protected]
Diffstat (limited to 'src/test')
0 files changed, 0 insertions, 0 deletions
