<div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif">I think I have found the answer.<br></div><div class="gmail_default" style="font-family:times new roman,serif"><br>We have loaded "legacy.sql".  <br>As shipped with version 2.1, this defines various functions in terms of entry points in <a href="http://postgis-2.1.so">postgis-2.1.so</a>.<br><br></div><div class="gmail_default" style="font-family:times new roman,serif">Those definitions are not part of the PostGIS extension, and so they are not affected by updating it.<br>So they continue to reference postgis-2.1...<br><br></div><div class="gmail_default" style="font-family:times new roman,serif">I think we might be able to fix this by running  'uninstall_legacy.sql' and then running<br></div><div class="gmail_default" style="font-family:times new roman,serif">'legacy.sql' from PostGIS 2.2. <br><br>But in fact, we're going to fix our system so that we no longer need the legacy functions...<br></div><div class="gmail_default" style="font-family:times new roman,serif"><br></div><div class="gmail_default" style="font-family:times new roman,serif">Robert.<br></div><div class="gmail_default" style="font-family:times new roman,serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 June 2017 at 15:54, Robert Inder <span dir="ltr"><<a href="mailto:robert@interactive.co.uk" target="_blank">robert@interactive.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:times new roman,serif">We have a number of databases (one per client) that use PostGIS.<br></div><div style="font-family:times new roman,serif">They run on Centos 6.8 machines, Postgres 9.4, PostGIS 2.1.8.<br><br></div><div style="font-family:times new roman,serif">Yum has just brought us PostGIS 2.2.5, and I am preparing to do the upgrade.<br><br>When I let yum upgrade the server to 2.2, the existing databases continue to use 2.1.<br></div><div style="font-family:times new roman,serif">As I'd hope/expect.<br><br></div><div style="font-family:times new roman,serif">BUT...<br><br>The instructions on <a href="http://postgis.net/install" target="_blank">http://postgis.net/install</a> tell me that to upgrade PostGIS, I should say...<br><pre class="m_6519868670507474830gmail-sql" style="font-family:monospace"><span style="color:rgb(153,51,51);font-weight:bold">   ALTER</span> EXTENSION postgis <span style="color:rgb(153,51,51);font-weight:bold">UPDATE</span>;</pre></div><div style="font-family:times new roman,serif">When I do this, "SELECT PostGIS_full_version();" tells me the database is using  PostGIS 2.2.5.<br><br></div><div style="font-family:times new roman,serif">But if I then back up the database, by doing a dump to SQL, the resulting files still has many blocks like...<br><br>    CREATE FUNCTION addbbox(geometry) RETURNS geometry<br>        LANGUAGE c IMMUTABLE STRICT<br>        AS '$libdir/postgis-2.1', 'LWGEOM_addBBOX';<br></div><div style="font-family:times new roman,serif"><br></div><div style="font-family:times new roman,serif">That "2.1" doesn't seem right.<br>Has something gone wrong without me noticing?  <br>Is there something else I need to do?<br></div><div style="font-family:times new roman,serif"><br></div><div style="font-family:times new roman,serif">ALSO...<br><br></div><div style="font-family:times new roman,serif">If, after I have updated the server,  I restore a pre-update backup (dropdb -> createdb -> load the SQL dump)<br></div><div style="font-family:times new roman,serif">I get a database that is using 2.2.  <br>It works.  But I'm worried that restoring the backup has not got me back to where I started.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div style="font-family:times new roman,serif">Robert.<br><br><br></div><div style="font-family:times new roman,serif"><br></div><div style="font-family:times new roman,serif"><br></div><div style="font-family:times new roman,serif"><br><br><br><br><br></div><div style="font-family:times new roman,serif"><br><br></div><div style="font-family:times new roman,serif"><br></div><div style="font-family:times new roman,serif"><br><br></div><div style="font-family:times new roman,serif"><br></div><div style="font-family:times new roman,serif"><br><br><br><br><br clear="all"></div><br>-- <br><div class="m_6519868670507474830gmail_signature">Robert Inder,                                    <a href="tel:0131%20229%201052" value="+441312291052" target="_blank">0131 229 1052</a> / <a href="tel:07808%20492213" value="+447808492213" target="_blank">07808 492 213</a><br>Interactive Information Ltd,   3, Lauriston Gardens, Edinburgh EH3 9HH<br>Registered in Scotland, Company no. SC 150689<br>                                            Interactions speak louder than words<br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Robert Inder,                                    0131 229 1052 / 07808 492 213<br>Interactive Information Ltd,   3, Lauriston Gardens, Edinburgh EH3 9HH<br>Registered in Scotland, Company no. SC 150689<br>                                            Interactions speak louder than words<br></div>
</div></div>