pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_atoi: error in.....: can't parse..."
2+ messages / 2 participants
[nested] [flat]

* pg_atoi: error in.....: can't parse..."
@ 2003-09-01 07:37  stessy <stessydelcroix@tiscali.be>
  0 siblings, 1 reply; 2+ messages in thread

From: stessy @ 2003-09-01 07:37 UTC (permalink / raw)
  To: pgsql-admin

hi all,

I have this error  "pg_atoi: error in "PARC INDUSTRIEL": can't parse "PARC INDUSTRIEL" "   when I try to copy data from  file to database.

The 2 databases have the same encoding 'LATIN1'.

The data types are all the same in two tables.

These are alls requests I use to copy data.

First database

psql gravoline

CREATE TABLE  adr AS SELECT(id_client, rue::text,num::text,"code postal"::text,localite::text) from adresse;

COPY adr to '/usr/adr.sql' USING DELIMITERS '|';

Second database

psql pdg

COPY adresse FROM '/usr/adr.sql' USING DELIMITERS '|';




ps: excuse for my english.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pg_atoi: error in.....: can't parse..."
@ 2003-09-01 22:01  Peter Eisentraut <peter_e@gmx.net>
  parent: stessy <stessydelcroix@tiscali.be>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2003-09-01 22:01 UTC (permalink / raw)
  To: stessy <stessydelcroix@tiscali.be>; +Cc: pgsql-admin

stessy writes:

> I have this error "pg_atoi: error in "PARC INDUSTRIEL": can't parse
> "PARC INDUSTRIEL" "  when I try to copy data from file to database.

The copy is seeing the value "PARC INDUSTRIEL" while it is trying to fill
a numerical column.  Make sure the order and type of your columns matches.

-- 
Peter Eisentraut   peter_e@gmx.net




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-09-01 22:01 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-01 07:37 pg_atoi: error in.....: can't parse..." stessy <stessydelcroix@tiscali.be>
2003-09-01 22:01 ` Peter Eisentraut <peter_e@gmx.net>

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