From Postgres to CSV with Python

Introduction In this article we study how to export data from Postgres into a CSV with Python scripting, using Python’s psycopg2 “OPEN” and “COPY_EXPERT” functions for creating a comma-separated values text file while moving data into that file, along with PostgreSQL’s “COPY TO” function to get the data we want out of a Postgres query. … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.