I'm trying to restore a dump from a postgresql database with postgis template.
When I try to restore the dump by terminal, I have a series of errors.
Terminal used command:
psql archeology -U cc1295225 -h 127.0.0.1 -p 45432 < exits_owner.sql > error.log 2 > & 1
Errors can be seen from the following file error.log
And when I try to restore using pgadmin in Create script I get the following error message:
COPY estado (gid, id, cd_geocodu, nm_estado, nm_regiao, the_geom) FROM stdin;
ERROR: syntax error at or near "1"
LINE 13926: 1 6 35 SÃO PAULO SUDESTE 0106000060421200003B000000010300004...
^
********** Error **********
ERROR: syntax error at or near "1"
SQL state: 42601
Character: 424037
Doubt
So how should I proceed to be able to restore the database with postgis template? Or fix this dump error problem.