<div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif">We have a number of databases (one per client) that use PostGIS.<br></div><div class="gmail_default" 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 class="gmail_default" 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 class="gmail_default" style="font-family:times new roman,serif">As I'd hope/expect.<br><br></div><div class="gmail_default" style="font-family:times new roman,serif">BUT...<br><br>The instructions on <a href="http://postgis.net/install">http://postgis.net/install</a> tell me that to upgrade PostGIS, I should say...<br><pre class="gmail-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 class="gmail_default" 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 class="gmail_default" 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 class="gmail_default" style="font-family:times new roman,serif"><br></div><div class="gmail_default" 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 class="gmail_default" style="font-family:times new roman,serif"><br></div><div class="gmail_default" style="font-family:times new roman,serif">ALSO...<br><br></div><div class="gmail_default" 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 class="gmail_default" 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.<br><br></div><div class="gmail_default" style="font-family:times new roman,serif">Robert.<br><br><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"><br></div><div class="gmail_default" style="font-family:times new roman,serif"><br><br><br><br><br></div><div class="gmail_default" style="font-family:times new roman,serif"><br><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"><br><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"><br><br><br><br><br clear="all"></div><br>-- <br><div class="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>