From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tarlika Elisabeth Schmitz <postgresql2@numerixtechnology.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: psql -f COPY from STDIN
Date: Sat, 13 Nov 2010 09:54:57 -0500
Message-ID: <24757.1289660097@sss.pgh.pa.us> (raw)
In-Reply-To: <20101113120135.6b7fdc9e@dick.coachhouse>
References: <20101112220340.36a0bc75@dick.coachhouse>
<8452.1289618531@sss.pgh.pa.us>
<20101113120135.6b7fdc9e@dick.coachhouse>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, postgresql2@numerixtechnology.de
Subject: Re: psql -f COPY from STDIN
In-Reply-To: <24757.1289660097@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox