As was known when PR #116 was merged, not all possible object types are listed by ClassDB.listOwnedObjects(). This became an problem in Issue #221 / PR #241, where listOwnedObjects() is used to obtain a list of objects to reassign ownership of all owned objects in a schema.
Currently, listOwnedObjects() lists the following types of objects:
- Tables
- Indexes
- Sequences
- Views
- Materialized Views
- Composite types (incorrectly called "types")
- TOASTs
- Foreign Tables
- Functions (without parameters)
It does not list:
- Domains
- Operators
- Non-composite types (Enumerated, Base, and Array)
- Event Triggers
- Servers
- Text Search Configurations
- Possibly others