forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite3a58c8
committed
Optimize query for information_schema.constraint_column_usage
The way the old query was written prevented some join optimizationsbecause the join conditions were hidden inside a CASE expression. Witha large number of constraints, the query became unreasonably slow. Thenew query performs much better.From: Alexey Bashtanov <bashtanov@imap.cc>Reviewed-by: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>1 parent68f3dbc commite3a58c8
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
801 | 801 |
| |
802 | 802 |
| |
803 | 803 |
| |
804 |
| - | |
805 |
| - | |
| 804 | + | |
| 805 | + | |
806 | 806 |
| |
807 | 807 |
| |
808 | 808 |
| |
|
0 commit comments
Comments
(0)