Thread: Syntax Error in COPY
Hi, could anybody help me? The backend (8.0) complains about the syntax of the following command. (This row is from a dump created by pgadmin 1.4, using pg_dump.exe v8.0.0.5017) The syntax error is located at the first 'DE' after the stdin;. What's the problem? COPY eden_countries (countrycode, countryname_hu, countryname_en, countryname_de, telephone_prefix, lang_code, lastmod, moduserid) FROM stdin; DE Németország Germany Deutschland +49 DE 2005-07-20 08:04:26.613 103 HU Magyarország Hungary Ungarn +36 HU 2005-07-20 08:04:26.613 103 EN Anglia England England +44 UK 2005-08-12 06:03:42.391512 107 CZ Csehország Czeck Republic Tchezische republik 43 CZ 2005-08-31 16:37:35.6287 103 \. Thank you, -- Csaba Együd -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 2005.11.24.
On 11/25/05, Együd Csaba <csegyud@vnet.hu> wrote: > Hi, > could anybody help me? > > The backend (8.0) complains about the syntax of the following command. (This > row is from a dump created by pgadmin 1.4, using pg_dump.exe v8.0.0.5017) > The syntax error is located at the first 'DE' after the stdin;. > this windows... what about the machine you are trying to load the data? > What's the problem? > what's the error it shows you? -- Atentamente, Jaime Casanova (DBA: DataBase Aniquilator ;)
Source machine: FC4 + Pg8.0.3 (dumped out from) Target machine: WinXP SP2. + Pg8.0.0 (trying to dump in) The maessage : "ERROR: syntax error at or near "DE" at character 144" -----Original Message----- From: Jaime Casanova [mailto:systemguards@gmail.com] Sent: Friday, November 25, 2005 5:31 PM To: Együd Csaba Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Syntax Error in COPY On 11/25/05, Együd Csaba <csegyud@vnet.hu> wrote: > Hi, > could anybody help me? > > The backend (8.0) complains about the syntax of the following command. > (This row is from a dump created by pgadmin 1.4, using pg_dump.exe > v8.0.0.5017) The syntax error is located at the first 'DE' after the stdin;. > this windows... what about the machine you are trying to load the data? > What's the problem? > what's the error it shows you? -- Atentamente, Jaime Casanova (DBA: DataBase Aniquilator ;) -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 2005.11.24.
On 11/25/05, Együd Csaba <csegyud@vnet.hu> wrote: > Source machine: FC4 + Pg8.0.3 (dumped out from) > Target machine: WinXP SP2. + Pg8.0.0 (trying to dump in) > The maessage : "ERROR: syntax error at or near "DE" at character 144" > ok. in FC4 execute unix2dos dumped_file.sql then try again to load the data in windows -- regards, Jaime Casanova (DBA: DataBase Aniquilator ;)
But the data was dumped with a windows version pg_dump. Or do know wrong that pgadmin3 uses a boundled version of pg_dump (installed on the client)? BTW after running unix2dos (on cygwin) the error message is the same... :( -- Csaba Együd -----Original Message----- From: Jaime Casanova [mailto:systemguards@gmail.com] Sent: Friday, November 25, 2005 5:50 PM To: Együd Csaba Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Syntax Error in COPY On 11/25/05, Együd Csaba <csegyud@vnet.hu> wrote: > Source machine: FC4 + Pg8.0.3 (dumped out from) Target machine: WinXP > SP2. + Pg8.0.0 (trying to dump in) The maessage : "ERROR: syntax > error at or near "DE" at character 144" > ok. in FC4 execute unix2dos dumped_file.sql then try again to load the data in windows -- regards, Jaime Casanova (DBA: DataBase Aniquilator ;) -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 2005.11.24.
On 11/25/05, Együd Csaba <csegyud@vnet.hu> wrote: > But the data was dumped with a windows version pg_dump. Or do know wrong > that pgadmin3 uses a boundled version of pg_dump (installed on the client)? > can you run a pg_dump (in FC4) and try with that dump? maybe it's some kind of problem with pg_dump of pgadmin3 (i don't know, just guessing :)... until someone get with a better idea, it's worth to try ;) -- regards, Jaime Casanova (DBA: DataBase Aniquilator ;)
Hi, it seems to be some kind of windows/pgadmin error (?), because running the dump on the linux server it was ok. I was able to work around the problem, but... Thank you Jaime. -----Original Message----- From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of Jaime Casanova Sent: Friday, November 25, 2005 6:24 PM To: Együd Csaba Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Syntax Error in COPY On 11/25/05, Együd Csaba <csegyud@vnet.hu> wrote: > But the data was dumped with a windows version pg_dump. Or do know > wrong that pgadmin3 uses a boundled version of pg_dump (installed on the client)? > can you run a pg_dump (in FC4) and try with that dump? maybe it's some kind of problem with pg_dump of pgadmin3 (i don't know, just guessing :)... until someone get with a better idea, it's worth to try ;) -- regards, Jaime Casanova (DBA: DataBase Aniquilator ;) ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.8/183 - Release Date: 2005.11.25.