I am trying to setup Replica outside of AWS and master is running at AWS RDS. And I do not want any downtime at my master. So I setup my slave node and now I want to backup my c
Either things have changed, since @Michael - sqlbot 's response, or there is a misunderstanding going on here (could be on my part),
You can use COPY
to import a csv file into rds, at least on the postgres version, you just need to use FROM STDIN
instead of directly naming the file,
which means you end up piping things like:
cat data.csv | psql postgresql://server:5432/mydb -U user -c "COPY \"mytable\" FROM STDIN DELIMITER ',' "