Postgres Import Error-messages

173 views
Skip to first unread message

luftikus143

unread,
May 11, 2006, 9:28:39 AM5/11/06
to geonames
Hi,

there seems to be a problem with the content of a couple of the fields.
When I did the import (of allCountries.txt) into Postgres - with the
definition of the fields as indicated on the download page at the
bottom - I still get a couple of error messages, like these here:

Row34078 - ERROR: invalid input syntax for type double precision: "P"

Row40374 - ERROR: invalid input syntax for type double precision: "P"

Row53636 - ERROR: invalid input syntax for type double precision: "T"

Row53781 - ERROR: invalid input syntax for type double precision: "H"

Row53949 - ERROR: value too long for type character(1)

Any ideas?

Marc

unread,
May 11, 2006, 4:24:16 PM5/11/06
to geon...@googlegroups.com
Hi

I have found two errors. One was with the database dumper. It has dumped
null values for featurecode as 'null'. The other one was a 'tab' in an
alternate name. I have removed the 'tab' and added some automatic 'tab'
removal code in the update methods.
Both problems should be fixed with the next daily dump, and you should
be able to load it.

Marc

Stefan Schwarzer

unread,
May 15, 2006, 9:33:03 AM5/15/06
to geon...@googlegroups.com
Thanks!

There are still a few errors:

Import log (2006-05-15 15:24:59)


Row34078 - ERROR: invalid input syntax for type double precision: "P"

Row40374 - ERROR: invalid input syntax for type double precision: "P"

Row53636 - ERROR: invalid input syntax for type double precision: "T"

Row53781 - ERROR: invalid input syntax for type double precision: "H"

Import was canceled by user. (2006-05-15 15:31:24)


And besides: I use NavicatPostgres to insert the data, but it crashes
after some time. Any suggestions for other tools that I can try,
preferably for a Mac?

Thanks!

Marc

unread,
May 15, 2006, 12:20:05 PM5/15/06
to geon...@googlegroups.com
Hi Stefan

I use simple psql to import the dump into postgres. I have just created
a faq entry for this :

http://forum.geonames.org/gforum/posts/list/67.page

Could you try with the command as described in the faq and with a new dump?

Regards,

Marc

Reply all
Reply to author
Forward
0 new messages