Tarlika Elisabeth Schmitz <postgresql2@numerixtechnology.de> writes:
> I changed event.sql (3 lines):
> \COPY
> (event_id, event_name)
> FROM STDIN DELIMITER AS ',' NULL AS ''
> Now I am getting error messages:
> psql:event.sql:1: \copy:parse error at end of line
I don't believe you can split backslash commands across lines.
> When I remove the linefeeds I don't get errors but it does not import
> anything.
You wanted pstdin, not stdin.
regards, tom lane