I'm connecting to a postgres db over SQL Alchemy. In testing COPY works great for appending rows to a local db--it's very fast.
COPY ratings FROM '/path/blah.csv' DELIMITER ',' CSV;
However, what I would like to do is COPY a CSV file over the SQL Alchemy connection into a remote postgres db. PG documentation indicates that something like
COPY ratings FROM STDIN '/path/blah.csv' DELIMITER ',' CSV;
might work. But it doesn't. I've tried a bunch of reasonable variations.
Ideas? Thanks for any help, and my apologies if this question is redundant.