Skip to content
Snippets Groups Projects
Commit e3a58c88 authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

Optimize query for information_schema.constraint_column_usage


The way the old query was written prevented some join optimizations
because the join conditions were hidden inside a CASE expression.  With
a large number of constraints, the query became unreasonably slow.  The
new query performs much better.

From: Alexey Bashtanov <bashtanov@imap.cc>
Reviewed-by: default avatarAshutosh Bapat <ashutosh.bapat@enterprisedb.com>
parent 68f3dbc5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment