I have to import a compressed sql dump into a PostgreSQL database. The dump gets created by:
pg_dump -F c
So I get a compressed file, which I can't just parse line by line and then use psycopg2 to upload it into my database.
The compressed dumps I'm dealing with are quite big (up to 10GB). What would be an efficient way to do import them?