How to copy from CSV file to PostgreSQL table with headers in CSV file? December 31, 2022 by Tarik This worked. The first row had column names in it. COPY wheat FROM 'wheat_crop_data.csv' DELIMITER ';' CSV HEADER