select
  collname as name,
  n.nspname as schema,
  'd' as provider,
  collencoding as encoding,
  collcollate as lc_collate,
  collctype as lc_ctype,
  null as version
from
pg_collation c
INNER JOIN pg_namespace n
    ON n.oid=c.collnamespace
    -- SKIP_INTERNAL where nspname not in ('pg_internal', 'pg_catalog', 'information_schema', 'pg_toast')
    -- SKIP_INTERNAL and nspname not like 'pg_temp_%' and nspname not like 'pg_toast_temp_%'
order by 2, 1
