简体   繁体   中英

How to list all the tables created by an account in AWS Redshift

I am wondering if there is a table or a query to list all the tables created by a certain user? I looked around redshift system tables but I couldn't find one yet.

PostgreSQL 8 queries will usually work in Redshift. You can do this:

select * from pg_catalog.pg_tables where tableowner='certainuser';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM