简体   繁体   中英

need DDL for all the tables under schemas in Redshift in one go

I need to create another redshift cluster in different region from my existing redshift cluster.so, i need the DDL for the all the tables of all schemas of my existing Redshift cluseter.please assist.

Please note - i tried runnng the script mentioned in the link to create views but it's not working - https://github.com/awslabs/amazon-redshift-utils/blob/master/src/AdminViews/v_generate_tbl_ddl.sql

I'd migrate a snapshot of the database to the other region and restore a new cluster from this snapshot. AWS has a page on doing exactly this.

https://aws.amazon.com/blogs/big-data/migrate-your-amazon-redshift-cluster-to-another-aws-region/

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