mirror of
https://github.com/HypoPG/hypopg
synced 2026-05-24 09:38:21 +00:00
Remove some LEFT JOIN.
This commit is contained in:
parent
1cd0d772f2
commit
8f036ceeba
1 changed files with 4 additions and 4 deletions
|
|
@ -71,10 +71,10 @@ AS
|
|||
$_$
|
||||
SELECT d.datname, h.indexname, n.nspname, c.relname, a.attname, am.amname
|
||||
FROM pg_hypo() h
|
||||
JOIN pg_database d ON d.oid = h.dbid
|
||||
LEFT JOIN pg_class c ON c.oid = h.relid
|
||||
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
||||
LEFT JOIN pg_attribute a on a.attrelid = c.oid
|
||||
JOIN pg_database d ON d.datname = current_database()
|
||||
JOIN pg_class c ON c.oid = h.relid
|
||||
JOIN pg_namespace n ON n.oid = c.relnamespace
|
||||
JOIN pg_attribute a on a.attrelid = c.oid
|
||||
LEFT JOIN pg_am am ON am.oid = h.amid
|
||||
WHERE a.attnum = h.attnum;
|
||||
$_$
|
||||
|
|
|
|||
Loading…
Reference in a new issue