<div dir="ltr">Hi Cedric,<br><div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-18 14:21 GMT+01:00 ced <span dir="ltr"><<a href="mailto:Cedric.DUPREZ@ign.fr" target="_blank">Cedric.DUPREZ@ign.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I am upgrading PostgreSQL and PostGIS from 9.3/2.1 to 9.5/2.3.<br>
<br>
I perform the backup on the old server (9.3/2.1) like this using pg_dump.<br>
<br>
Then, on the new server (9.5/2.3), I restore the backup using pg_restore.<br>
<br>
Everything is correctly restored, except just one raster table, a DEM, which<br>
produces the following error message (sorry, it is in french...):<br>
<br>
COPY échoué pour la table « mnt » : ERREUR:  l'opérateur n'existe pas :<br>
public.geometry @ public.geometry<br>
LIGNE 1 : SELECT $1 @ $2 AND public._ST_CoveredBy($1,$2)<br></blockquote></div><br></div><div class="gmail_extra">The problem could be reasonably due to the schema where the operator @ is defined:<br></div><div class="gmail_extra">could you attach here the output of the following psql meta-commands, once you are connected<br></div><div class="gmail_extra">to the 9.5 database (i.e. where the dump is restored)?<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">1) \do @<br><br></div><div class="gmail_extra">2) SHOW search_path;<br><br></div><div class="gmail_extra">PostGIS 2.3 now fully-qualify operators and functions with the schema where they are defined<br>(see for instance public._ST_CoveredBy). @ looks to be not fully-qualified. My first thought here<br></div><div class="gmail_extra">is that @ is not defined in any schema visible through the search_path (probably in the "postgis"<br></div><div class="gmail_extra">schema?).<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,<br></div><div class="gmail_extra">Giuseppe.<br></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span></span>Giuseppe Broccolo - 2ndQuadrant Italy
<br>PostgreSQL & PostGIS Training, Services and Support
<br><a href="mailto:giuseppe.broccolo@2ndQuadrant.it" target="_blank">giuseppe.broccolo@2ndQuadrant.it</a> | <a href="http://www.2ndQuadrant.it" target="_blank">www.2ndQuadrant.it</a>
</div></div></div></div>
</div></div></div>