gw2=# COPY buy_listings (id,listings,unit_price,quantity) FROM STDIN; Enter data to be copied followed by a newline. End with a backslash and a period on a line by itself. >> 1 2 3 4 >> \. COPY 1 gw2=# (query DB "COPY buy_listings (id,listings,unit_price,quantity) FROM STDIN;\n1 2 3 4\n\\.") Error: (get-last-result) ERROR: syntax error at or near "1" LINE 2: 1 2 3 4 ^ Call history: (query DB "COPY buy_listings (id,listings,unit_price,quantity) FROM STDIN;\n1\t2\t3\t4\n\\.") (query DB "COPY buy_listings (id,listings,unit_price,quantity) FROM STDIN;\n1\t2\t3\t4\n\\.") <-- #;36>