<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {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'>Why are you using 3.0.0? – that was released years ago.<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'>Please use 3.0.7 which should have a fix for this.  It might not be available on your system just yet, but should be sometime next week.<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><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><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-devel [mailto:postgis-devel-bounces@lists.osgeo.org] <b>On Behalf Of </b>Kirill Reshke<br><b>Sent:</b> Thursday, August 18, 2022 5:40 AM<br><b>To:</b> postgis-devel@lists.osgeo.org<br><b>Subject:</b> [postgis-devel] Postgis upgrade issues with new PostgreSQL minor versions<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Hi hackers!<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>We have faced an issue while upgrading postgis extension on one of our cluster. We upgrade from 2.5.2 version to 3.0.0 to be precise. PG version in 11.17<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>The error we get is:<o:p></o:p></p></div><div><pre><cut>/db1 M # alter extension postgis_tiger_geocoder update TO "3.0.0";<o:p></o:p></pre><pre>ERROR:  55000: function setsearchpathforinstall(character varying) is not a member of extension "postgis_tiger_geocoder"<o:p></o:p></pre><pre>DETAIL:  An extension is not allowed to replace an object that it does not own.<o:p></o:p></pre><pre>LOCATION:  recordDependencyOnCurrentExtension, pg_depend.c:187<o:p></o:p></pre><pre style='margin-bottom:12.0pt'>Time: 80.574 ms<o:p></o:p></pre><pre>The reason is, that after this commit <a href="https://github.com/postgres/postgres/commit/f52d2fbd8c62f667191b61228acf9d8aa53607b9">https://github.com/postgres/postgres/commit/f52d2fbd8c62f667191b61228acf9d8aa53607b9</a><o:p></o:p></pre><pre>extension are not allowed to replace objects not belonging to the extension.<o:p></o:p></pre><pre>After debuging with gdb, we have find out than postgis_tiger_geocoder do this sql command while <br>upgrade:<br><br>ALTER EXTENSION postgis_tiger_geocoder DROP FUNCTION setsearchpathforinstall(character varying);<o:p></o:p></pre><pre>which erase dependency between postgis_tiger_geocoder ext and setsearchpathforinstall function, reasoning in upgrade failure.<o:p></o:p></pre><pre>So, is this a well-known bug? how we can get rid of this? i will try to propose a patch for it, if this is unknown bug or there is no fix.<o:p></o:p></pre></div></div></div></div></body></html>