I am new to RedShift. Below is my process flow:
- Create CSV copies of my database(Postgres RDS) tables in S3.
- Create some staging tables(for ETL purposes) in RedShift using "create table" from sql client connected to redshift.
- Moving data from S3 to RedShift using Copy command.
Problem:
My staging table(which will be dropped after ETL process with other staging tables) has same schema as source table from RDS. But every time I build a new staging table I have to write a long "create table" command and it becomes frustrating when I have table with 100's of features. Is there any easy method to copy the schema? or Do I need to change something with my current process to make this easier?