<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:Roboto;}
@font-face
        {font-family:"Sans Serif";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>The table is not created during update, but should be updated with new records and corrections as needed.  I’ve confirmed I see the same issue in one of my databases that was upgraded to  3.1.4 (5757 rows) (compared to a fresh install 8500 rows).<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I’ve ticketed here:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><a href="https://trac.osgeo.org/postgis/ticket/5024">https://trac.osgeo.org/postgis/ticket/5024</a><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>As far as hard upgrade, that should  only be needed if going from Pre PostGIS 2.0 to PostGIS 2.0 and above.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='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>From:</b> postgis-users [mailto:postgis-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>McCoy, Shawn<br><b>Sent:</b> Monday, November 22, 2021 1:56 PM<br><b>To:</b> postgis-users@lists.osgeo.org<br><b>Subject:</b> [postgis-users] Should the spatial_ref_sys table be updated using the "ALTER EXTENSION...UPDATE" command?<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Roboto'>I looked through code and didn't see any update commands or any calls to "spatial_ref_sys.sql" in the script "postgis--ANY--3.1.4.sql".  In 3.1.4 there are several new rows in the table.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.5pt;font-family:Roboto'><br>1.  Is this object purposely not recreated via the update script?<br>2.  In the docs:  <a href="https://postgis.net/docs/manual-3.0/postgis_installation.html#upgrading" target="_blank"><span style='color:#1A73E8'>https://postgis.net/docs/manual-3.0/postgis_installation.html#upgrading</span></a>, is this why the "HARD UPGRADE" method is required?  If so, why is there even a symlink named "postgis--2.4.5--3.1.4.sql"?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Roboto'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Roboto'>Thanks for any information,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Roboto'>Shawn<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Roboto'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Roboto'><br>quick repro of my question:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Roboto'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>postgres=> create extension postgis version '2.4.5';</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>CREATE EXTENSION</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>postgres=> select count(*) from spatial_ref_sys;</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'> count</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>-------</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>  5757</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>(1 row)</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Roboto'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>postgres=> alter extension postgis update to '3.1.4';</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>WARNING:  unpackaging raster</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>WARNING:  PostGIS Raster functionality has been unpackaged</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>HINT:  type `SELECT postgis_extensions_upgrade();` to finish the upgrade. After upgrading, if you want to drop raster, run: DROP EXTENSION postgis_raster;</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>ALTER EXTENSION</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>postgres=> select count(*) from spatial_ref_sys;</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'> count</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>-------</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>  5757</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>(1 row)</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Roboto'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Sans Serif"'>whereas...</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Roboto'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>postgres=> create extension postgis version '3.1.4';</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>CREATE EXTENSION</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>postgres=> select count(*) from spatial_ref_sys;</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'> count</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>-------</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>  8500</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>(1 row)</span><span style='font-size:10.5pt;font-family:Roboto'><o:p></o:p></span></p></div></div></body></html>