Laur's blog
  • Home
  • About
  • Support my work
Sign in Subscribe

header

A collection of 1 post
Load a CSV File with Header in Postgres via Psycopg
copy_expert

Load a CSV File with Header in Postgres via Psycopg

My task is to create a script to load a bunch of files into a DB model. The files are CSV, with quoted strings and headers. Postgres has a COPY command which I find fabulous for loading data. unfortunately, the psycopg implementations copy_from() , copy_to() and copy_expert() have
Jul 5, 2014 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost