<div dir="ltr"><div>Hi guys</div><div><br></div><div>Sorry to hijack this thread a bit, but my question is very similar. <br></div><div><br></div><div>Is it possible to use PostGIS from the postgresql apt repo, while using gdal etc (for qgis and grass) from ubuntugis-unstable ppa?</div><div><br></div><div>Pieter<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 5, 2023 at 4:00 PM Bo Guo <<a href="mailto:bo.guo@gisticinc.com">bo.guo@gisticinc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hi, Regina! I solved the problem.</div><div><br></div><div>It turned out I missed the step of "Adds pgdg keys and main repo" as referenced in <a href="https://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS3UbuntuPGSQLApt" target="_blank">https://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS3UbuntuPGSQLApt</a> <br></div></div><div><br></div><div>Thank you again!</div><div><br></div><div>Bo<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 5, 2023 at 5:52 AM Bo Guo <<a href="mailto:bo.guo@gisticinc.com" target="_blank">bo.guo@gisticinc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi, Regina!</div><div><br></div><div>I do not know why the new stall Postgresql 14 with Postgis-3 on the newly built Ubuntu server 22.04 would have Postgis 3.2.0. This was the command I used for the postgis install:</div><div> <span style="font-size:12px;color:rgb(0,0,0);font-weight:normal;text-decoration:none;font-family:"Courier New";font-style:normal">sudo apt install postgresql-14-postgis-3</span></div><div><span style="font-size:12px;color:rgb(0,0,0);font-weight:normal;text-decoration:none;font-family:"Courier New";font-style:normal"><br></span></div><div><span style="font-size:12px;color:rgb(0,0,0);font-weight:normal;text-decoration:none;font-style:normal;font-family:arial,sans-serif">I went to the postgis folder</span> (/usr/share/postgresql/14/extension) but could ONLY see files with version of 3.2.0 and lower. So it appeared that the installation did not bring postgis to the 3.2.1 or above. Please let me know alternative ways to install higher version.</div><div><span style="font-size:12px;color:rgb(0,0,0);font-weight:normal;text-decoration:none;font-family:"Courier New";font-style:normal"><br></span></div><div><span style="font-size:12px;color:rgb(0,0,0);font-weight:normal;text-decoration:none;font-family:"Courier New";font-style:normal">Cheers,<br></span></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br>
</div><div>Bo<br></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 4, 2023 at 5:06 PM Regina Obe <<a href="mailto:lr@pcorp.us" target="_blank">lr@pcorp.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div lang="EN-US"><div><p class="MsoNormal">Bo,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">At a glance, it looks like maybe your PostgreSQL 13 had a 3.2.1 installed and your PostgreSQL 14 has 3.2.0 installed (or at least the postgis.control file probably has 3.2.0 instead of 3.2.1).<u></u><u></u></p><p class="MsoNormal">I’d double check to make sure you did install 3.2.1 on your PostgreSQL 14. Downgrades are not supported which is essentially what it’s telling you.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">That said, the preferable way for upgrading PostGIS 3 is to use:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">SELECT postgis_extensions_upgrade();<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Though that will probably result in the same error since it seems your PostgreSQL 14 is running with 3.2.0 instead of 3.2.1.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The ALTER EXTENSION approach has a couple of downsides, that postgis_extensions_upgrade can handle<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><ol style="margin-top:0in" start="1" type="1"><li style="margin-left:0in">It will only update postgis and not your other extensions like for example your postgis_topology. Postgis_extensions_upgrade() will upgrade any postgis_ extension.<u></u><u></u></li><li style="margin-left:0in">If you are moving from a PostgreSQL major to another PostgreSQL major on same version, you still need to upgrade, but because ALTER EXTENSION relies on a version bump, it won’t be able to upgrade.<u></u><u></u></li></ol><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">If you still see a mismatch after please let us know. I know we’ve made improvements in postgis_extensions_upgrade so 3.2.0 might not have all the new features.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">Regina<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-width:medium medium medium 1.5pt;border-style:none none none solid;border-color:currentcolor currentcolor currentcolor blue;padding:0in 0in 0in 4pt"><div><div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(225,225,225) currentcolor currentcolor;padding:3pt 0in 0in"><p class="MsoNormal"><b>From:</b> postgis-users <<a href="mailto:postgis-users-bounces@lists.osgeo.org" target="_blank">postgis-users-bounces@lists.osgeo.org</a>> <b>On Behalf Of </b>Bo Guo<br><b>Sent:</b> Monday, September 4, 2023 7:40 PM<br><b>To:</b> PostGIS Users Discussion <<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a>><br><b>Subject:</b> [postgis-users] ERROR: extension "postgis" has no update path from version "3.2.1" to version "3.2.0"<u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal"><span style="font-size:9pt;font-family:Consolas;color:rgb(34,34,34);letter-spacing:0.1pt;background:white">Hi all,</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-size:9pt;font-family:Consolas;color:rgb(34,34,34);letter-spacing:0.1pt;background:white">I do not know how it happened, but after I upgraded from Postgresql 13- 14, I had a problem updating extensions, including postgis by using: </span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">ALTER EXTENSION "postgis" UPDATE;<span style="font-size:9pt;font-family:Consolas;color:rgb(34,34,34);letter-spacing:0.1pt;background:white"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-size:9pt;font-family:Consolas;color:rgb(34,34,34);letter-spacing:0.1pt;background:white">Here is the version info:</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">SELECT version();<u></u><u></u></p></div><div><p class="MsoNormal">PostgreSQL 14.9 (Ubuntu 14.9-0ubuntu0.22.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">SELECT postgis_full_version();<u></u><u></u></p></div><div><p class="MsoNormal">POSTGIS="3.2.0 c3e3cc0" [EXTENSION] PGSQL="130" (procs need upgrade for use with PostgreSQL "140") GEOS="3.10.2-CAPI-1.16.0" PROJ="8.2.1" LIBXML="2.9.12" LIBJSON="0.15" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)" (core procs from "3.2.1 5fae8e5" need upgrade) TOPOLOGY (topology procs from "3.2.1 5fae8e5" need upgrade)<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-size:9pt;font-family:Consolas;color:rgb(34,34,34);letter-spacing:0.1pt;background:white">I really appreciate any help you can provide.</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-size:9pt;font-family:Consolas;color:rgb(34,34,34);letter-spacing:0.1pt;background:white">Bo</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><div><div><div><div><p class="MsoNormal"><b><span style="font-size:9pt;font-family:"Arial",sans-serif;color:dimgray">Bo Guo</span></b><b><span style="font-size:8.5pt;color:dimgray">, PhD, PE</span></b><br><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:gray">President</span><br><img width="200" height="52" style="width: 2.0833in; height: 0.5416in;" id="m_3869397782538981072m_-2543307166147469930m_1886851918504547503m_-4269082658662766176_x0000_i1025" src="https://gisticinc.com/wp-content/uploads/2019/03/GLogoSquareName.png"><br><span style="font-size:7.5pt;color:dimgray">2820 S Alma School Rd #18-671, Chandler, AZ 85286</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">p 480-656-9962 c 602-570-4697</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif"><br><b><span style="color:rgb(102,153,51)"><a href="http://www.gisticinc.com" target="_blank">www.gisticinc.com</a></span></b></span><u></u><u></u></p></div><div><p class="MsoNormal"><b><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:rgb(102,153,51)"><a href="http://youtube.com/linearbench" target="_blank">youtube.com/linearbench</a></span></b><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></div></div></div></div></div>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</div></blockquote></div>
</blockquote></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</blockquote></div>