I am trying to import a PostgreSQL data file into Amazon redshift using my command line. I did import the schema file but can not import data file. It seems that data insertion in amazon redshift is a bit different.
I want to know all kinds of way of importing data file into redshift using command line.
UPDATE
My data file looks like :
COPY actor (actor_id, first_name, last_name, last_update) FROM stdin;
0 Chad Murazik 2014-12-03 10:54:44
1 Nelle Sauer 2014-12-03 10:54:44
2 Damien Ritchie 2014-12-03 10:54:44
3 Casimer Wiza 2014-12-03 10:54:44
4 Dana Crist 2014-12-03 10:54:44
....
I typed the following command from CLI:
PGPASSWORD=**** psql -h testredshift.cudmvpnjzyyy.us-west-2.redshift.amazonaws.com -p 5439 -U abcd -d pagila -f /home/jamy/Desktop/pag_data.sql`
And then got error like :
ERROR: LOAD source is not supported. (Hint: only S3 or DynamoDB or EMR based load is allowed
INSERTstatements? CSV? Output frompg_dump?psql. Other options includepg_restore, theCOPYcommand, or using an ETL tool like Talend Studio, Pentaho Kettle or CloverETL. Anyway, what's the error message?