<div dir="ltr"><div><div>The problem is with pg_restore for raster tables not in the public schema<br>use this url for reference. <a href="https://trac.osgeo.org/postgis/ticket/2485#no1">https://trac.osgeo.org/postgis/ticket/2485#no1</a><br><br>This is a fix I have implemented that seems to work, I might have all of the raster_constraint functions though...<br></div>SHOW search_path'<br><br></div>Alter the following functions to include the pg_catalog in the search path.<br><div><div>
<span><div><span>Alter Function _raster_constraint_nodata_values (raster) SET Search_path="$user", <span lang="EN-US">pg_catalog,</span>public;</span></div><div>Alter Function _raster_constraint_out_db (raster) SET Search_path="$user", <span lang="EN-US">pg_catalog,</span>public;</div><div>Alter Function _raster_constraint_pixel_types(raster) SET Search_path="$user", <span lang="EN-US">pg_catalog,</span>public;</div><div>Alter Function _overview_constraint(raster, integer, name, name, name)  <span style="color:rgb(0,0,0);font-family:Tahoma;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);font-size:medium;display:inline!important;float:none"></span><span>SET Search_path="$user", <span lang="EN-US">pg_catalog,</span>public;<br><br></span></div><div><span>now try restore command<br></span></div><div><span><br></span></div></span>

<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 10:35 AM, Cedric Duprez <span dir="ltr"><<a href="mailto:Cedric.Duprez@ign.fr" target="_blank">Cedric.Duprez@ign.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div text="#000000" bgcolor="#FFFFFF">
Yes, the function ST_BandMetadata, with the right parameters, is in my public functions list.<br>
Both full versions of postgis and postgresql are the same.<div><div class="h5"><br>
<div><br>
</div>
<div>Le 15/01/2016 10:21, Tom van Tilburg a écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">Just checking the obvious: 
<div>Is there a function ST_BandMetedata in your functions list?</div>
<div>And what is the full version output of the original server?</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Fri, 15 Jan 2016 at 10:03 Cedric Duprez <<a href="mailto:Cedric.Duprez@ign.fr" target="_blank"></a><a href="mailto:Cedric.Duprez@ign.fr" target="_blank">Cedric.Duprez@ign.fr</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Tom,<br>
<br>
Thanks for your answer.<br>
I am sure that rasters are enabled in my postgis dbase (the first thing<br>
I checked). Raster functions are in the public schema.<br>
This is the result of SELECT postgis_full_version() :<br>
POSTGIS="2.1.0 r11822" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.8.0, 6<br>
March 2012" GDAL="GDAL 1.11.0, released 2014/04/16" LIBXML="2.9.1"<br>
LIBJSON="UNKNOWN" TOPOLOGY RASTER<br>
<br>
Cedric<br>
<br>
Le 15/01/2016 09:09, Tom van Tilburg a écrit :<br>
><br>
> Cedric,<br>
><br>
> Are you sure rasters are enabled in your new postgis dbase? Please<br>
> check for the existence  of raster functions (st_bandmetadata in<br>
> particular) in public.functions and run SELECT postgis_full_version()<br>
><br>
> Tom<br>
><br>
><br>
><br>
> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@lists.osgeo.org" target="_blank">
postgis-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">
http://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote>
</div>
<br>
<fieldset></fieldset> <br>
<pre>_______________________________________________
postgis-users mailing list
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/postgis-users</a></pre>
</blockquote>
<br>
</div></div></div>

<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>