From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Klas Stockhem <Klas(dot)Stockhem(at)benders(dot)se> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Problems when copy data from dump file |
Date: | 2009-08-04 08:09:03 |
Message-ID: | 4A77EC9F.1020202@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Klas Stockhem wrote:
> SQL error:
>
> ERROR: syntax error at or near "5"
>
> LINE 2: 5 Slitasje og vedlikehold PRAKTISKE OPPLYSNINGER\r\n\r\nSn&#...
>
> ^
> COPY artikkel (id, tittel, tekst) FROM stdin;
>
> 5 Slitasje og vedlikehold PRAKTISKE
> OPPLYSNINGER\r\n\r\nSnø og is.\r\nSnør...and more text... \.
1. Do you really have a blank line between "COPY" and "5"? If so, that's
your problem.
2. Are you perhaps copying+pasting from a Windows machine to a Linux one
or similar? You might be getting "\r\n" at the end of lines when it's
expecting "\n".
> The postgresql version is 7.4.17.
Might want to set aside some time to upgrade in the near future - you're
missing four full versions since 2003. At the very least, upgrade to
7.4.25 at your earliest convenience.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Venkateswara Rao Bondada | 2009-08-04 08:11:29 | Re: Create table command fails with permission denied |
Previous Message | Rob Sargent | 2009-08-03 22:02:57 | Re: Create table command fails with permission denied |