<br>Hello all. I am trying to upgrade to postgis-2.0.1. <br><br>I dumped my db with :<br>pg_dump -Fc -b -v -f "/opt/dump/dump.sql" postgis<br><br>When I run "./<a href="http://postgis_restore.pl">postgis_restore.pl</a> "/opt/dump/dump.sql" | psql -a postgis2" I get 2 errors.<br>
<br>ALTER SEQUENCE spatial_ref_sys_srid_seq OWNED BY spatial_ref_sys.srid;<br>ERROR: sequence must have same owner as table it is linked to<br>SELECT pg_catalog.setval('spatial_ref_sys_srid_seq', 1, false);<br><br>
<br>ALTER TABLE spatial_ref_sys ADD PRIMARY KEY(srid);<br>ERROR: could not create unique index "spatial_ref_sys_pkey"<br>DETAIL: Key (srid)=(4279) is duplicated.<br><br>I looked at spatial_ref_sys and it is filled with dupes. Any ideas on what I am doing wrong?<br>