script to find out owner of the schema in aws Redshift:
select nspname as schema, usename as owner
from pg_catalog.pg_namespace, pg_catalog.pg_user
where pg_catalog.pg_namespace.nspowner = pg_catalog.pg_user.usesysid
and pg_catalog.pg_user.usename ='us_sales';
schema | owner
----------+----------
us_sales | dwuser
(1 row)
No comments:
Post a Comment