<div dir="auto"><div>Perhaps some grant rule change between 9.4 and 9.6 that give unseeable the spatialrefsys to other tables ?</div><div dir="auto"><br></div><div dir="auto">A.<br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">Il 16 Ago 2017 09:47, "Pietro Rossin" <<a href="mailto:pietro.rossin@arpa.fvg.it">pietro.rossin@arpa.fvg.it</a>> ha scritto:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
we made a hard upgrade and the result seems ok, but a long errors list<br>
reported by the process..<br>
In order, in debian 8.9/postgresql 9.4.12/postgis 2.3 we made a custom dump<br>
<br>
pg_dump -Fc -b -v -f "/somepath/olddb.backup" olddb<br>
<br>
then we upgraded debian to 9, postgresql to 9.6/postgis 2.3<br>
<br>
and restore<br>
perl some_path_to/<a href="http://postgis_restore.pl" rel="noreferrer" target="_blank">postgis_restore.<wbr>pl</a> "/somepath/olddb.backup" | psql newdb<br>
2> /tmp/errors.txt<br>
<br>
The restore process came to the end and in errors.txt we find many errors<br>
like:<br>
<br>
ERROR: GetProj4StringSPI: Cannot find SRID (3045) in spatial_ref_sys<br>
<br>
or other srid..<br>
<br>
So I tried to compare what is in both db (old/new) and<br>
public.spatial_ref_sys has these srid, the public.geometry_columns content<br>
is the same in old/new view and the number of tables/records is the same<br>
(except some difference in count due to vacuum execution)<br>
<br>
So for me the dump/restore process seems good this way, but what about these<br>
srid errors?<br>
<br>
Thanks again<br>
Pietro<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://postgis.17.x6.nabble.com/Upgrade-both-Postgres-postgis-and-Debian-major-releases-how-to-tp5011462p5011474.html" rel="noreferrer" target="_blank">http://postgis.17.x6.nabble.<wbr>com/Upgrade-both-Postgres-<wbr>postgis-and-Debian-major-<wbr>releases-how-to-<wbr>tp5011462p5011474.html</a><br>
<div class="elided-text">Sent from the PostGIS - User mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/postgis-users</a></div></blockquote></div><br></div></div></div>