Skip to content

Commit

Permalink
[10.x] Exclude extension types on PostgreSQL when retrieving types (#…
Browse files Browse the repository at this point in the history
…49358)

* exclude extension types

* also exclude implicit extension types
  • Loading branch information
hafezdivandari authored Dec 13, 2023
1 parent 94634fe commit f6777af
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public function compileTypes()
.'left join pg_type el on el.oid = t.typelem '
.'left join pg_class ce on ce.oid = el.typrelid '
."where ((t.typrelid = 0 and (ce.relkind = 'c' or ce.relkind is null)) or c.relkind = 'c') "
."and not exists (select 1 from pg_depend d where d.objid in (t.oid, t.typelem) and d.deptype = 'e') "
."and n.nspname not in ('pg_catalog', 'information_schema')";
}

Expand Down

0 comments on commit f6777af

Please sign in to comment.