“ERROR: extra data after last expected column” when using PostgreSQL COPY
Please bear with me as this is my first post. I'm trying to run the COPY command in PostgreSQL-9.2 to add a tab delimited table from a .txt file to a PostgreSQL database such as: COPY raw_data FROM '/home/Projects/TestData/raw_data.txt' WITH (DELIMITER ' '); I've already created an empty table called "raw_data" in the database using the SQL command: CREATE TABLE raw_data (); I keep getting the following error message when trying to run the COPY command: ERROR: extra data after last expected column CONTEXT: COPY raw_data, line 1: " 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24