<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Which OS are you on and how did you install PostGIS e.g. via Package manager or by compile?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Which version are you running?  The script should have been included from PostGIS 2.2.2+ so it's possible you don't have it if you are not running the latest micro version.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>The rtpostgis_proc_set_search_path.sql should have been installed in your PostgreSQL share/contrib/postgis-2.2 folder<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>If per chance it wasn't or you have an older version, I have attached the file. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>The statement "</span><span style='font-size:9.5pt'>"</span><span style='font-size:8.5pt;font-family:"Courier New";color:#2E2E2E;background:#F8F8F9'>make sure to install in same schema as your backup was installed in"<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:#2E2E2E;background:#F8F8F9'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:#2E2E2E;background:#F8F8F9'>Means that if say your postgis is installed in schema postgis (when you backed up), then when you do CREATE EXTENSION postgis<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:#2E2E2E;background:#F8F8F9'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:#2E2E2E;background:#F8F8F9'>You should again install it in PostGIS schema and the script as well.  In hindsight, I probably should have just left that statement out since it causes more confusion than helps.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:#2E2E2E;background:#F8F8F9'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> Hope that helps,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Regina<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> postgis-users [mailto:postgis-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Chris Lee<br><b>Sent:</b> Monday, July 18, 2016 2:40 PM<br><b>To:</b> postgis-users@lists.osgeo.org<br><b>Subject:</b> [postgis-users] pg_restore raster workaround help<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:.5in'><span style='font-size:9.5pt'>Has anyone had any luck with </span><a href="http://postgis.net/docs/manual-2.2/RT_FAQ.html#faq_raster_data_not_restore" target="_blank"><span style='font-size:9.5pt'>http://postgis.net/docs/manual-2.2/RT_FAQ.html#faq_raster_data_not_restore</span></a><span style='font-size:9.5pt'>?<br><br>I have backed up a raster only schema coming from 9.4/2.2 going to 9.5/2.2. Can you please clarify "</span><span style='font-size:8.5pt;font-family:"Courier New";color:#2E2E2E;background:#F8F8F9'>make sure to install in same schema as your backup was installed in"</span><span style='font-size:9.5pt'> ?<br><br>The PostGIS extension is on public and I tried loading just the schema (rasters) before loading the data. How can I find </span><span style='font-size:8.5pt;font-family:"Courier New";color:#2E2E2E;background:#F8F8F9'>rtpostgis_proc_set_search_path.sql </span><span style='font-size:9.5pt'>?</span><span style='font-size:8.5pt;font-family:"Courier New";color:#2E2E2E;background:#F8F8F9'><br><br></span><span style='font-size:9.5pt'>Thanks,<br><br>Chris</span><o:p></o:p></p></div></div></body></html>