forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite1a0f6a
committed
Adjust overly strict Assert
3373c71 changed how we determine EquivalenceClasses for relations andadded an Assert to ensure all relations mentioned in each EC's ec_relidswas a RELOPT_BASEREL. However, the join removal code may remove a LEFTJOIN and since it does not clean up EC members belonging to the removedrelations 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 SeltenreichDiscussion:https://postgr.es/m/87y30r8sls.fsf@ansel.ydns.eu1 parent330cafd commite1a0f6a
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
761 | 761 |
| |
762 | 762 |
| |
763 | 763 |
| |
764 |
| - | |
| 764 | + | |
| 765 | + | |
765 | 766 |
| |
766 | 767 |
| |
767 | 768 |
| |
|
0 commit comments
Comments
(0)