PostgreSQL Extract and Load using COPY