Applies schema include/exclude filtering to catalog queries.
System schemas (information_schema, pg_catalog, pg_toast) are always
excluded. The :schemas scan option restricts the scan to only the listed
schemas; :exclude_schemas skips additional schemas on top of the system
ones.
Summary
Functions
Applies schema filters to query.
The query must tag the binding that carries the schema name with
as: :schema_scope; field_name is the schema-name field on that binding
(:table_schema for information_schema relations, :nspname for
pg_namespace, and so on).
The schemas that are always excluded from scans.