<div dir="ltr"><div>My database is small (< 200 MB) and pg_dump/restore appears to being working correctly. I just wanted to make sure those errors during import didn't break something I'm not seeing (yet).</div><div><br></div><div>Thanks for the help!</div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="font-family:georgia,serif;font-size:12.8px">Patrick</span></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 29, 2018 at 12:11 PM Regina Obe <<a href="mailto:lr@pcorp.us">lr@pcorp.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_-685736410174138482WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Unfortunately I don't think you can use the symlink approach to go from 2.1 – 2.5 because we took out functions between 2.1 and 2.2.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">At least that is what I recall from memory. I haven't retested recently.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If you installed PostGIS using extensions, the functions ARE NOT in the dump.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">So you should be good to just backup the database and restore on your 10.5 that has PostGIS 2.5 binary installed. <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">The restore process will recreate the postgis extension and will use the 2.5 one if that's the last installed version on your 10.5.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Alternative would be if you can, upgrade your 9.3/2.1 -> 2.5 using ALTER EXTENSION postgis UPDATE;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">And then pg_upgrade over to PostgreSQL 10.5 +PostGIS 2.5<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If your database is small (by small, I mean less than 10GB) and you only have one database, probably easier to just do a pg_dump and then pg_restore.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></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-users [mailto:<a href="mailto:postgis-users-bounces@lists.osgeo.org" target="_blank">postgis-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Darafei "Kom?pa" Praliaskouski<br><b>Sent:</b> Monday, October 22, 2018 12:47 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> Re: [postgis-users] PostGIS - Migration case from 9.3/2.1 to 10.5/2.5<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">Hi,<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I keep a gist with upgrading tldr:<u></u><u></u></p></div><p class="MsoNormal"><a href="https://gist.github.com/Komzpa/994d5aaf340067ccec0e" target="_blank">https://gist.github.com/Komzpa/994d5aaf340067ccec0e</a> <u></u><u></u></p><div><p class="MsoNormal">You can notice most upgrades are similar and can be done by analogy.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Versions 2.1 and 2.5 have 5 years between them, so there are quite a lot of small changes. However, if you weren't using weird tricks, the update should be rather smooth.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">You may want to read NEWS file, focusing on Breaking Changes entries, between version 2.1 and 2.5.<u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://git.osgeo.org/gitea/postgis/postgis/raw/tag/2.5.0/NEWS" target="_blank">https://git.osgeo.org/gitea/postgis/postgis/raw/tag/2.5.0/NEWS</a> <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><p class="MsoNormal">пн, 22 окт. 2018 г. в 19:41, Daniel Boulerice <<a href="mailto:Boulerice_Daniel@cat.com" target="_blank">Boulerice_Daniel@cat.com</a>>:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal">Is there a document highlighting the caveats of migrating<span lang="EN-CA"><u></u><u></u></span></p><p class="MsoNormal"> <span lang="EN-CA"><u></u><u></u></span></p><ul type="disc"><li class="MsoNormal">From Postgres 9.3 + PostGIS 2.1<span lang="EN-CA"><u></u><u></u></span></li><li class="MsoNormal">To Postgres 10.5 + PostGIS 2.5<span lang="EN-CA"><u></u><u></u></span></li></ul><p class="MsoNormal"> <span lang="EN-CA"><u></u><u></u></span></p><p class="MsoNormal">I guess the best way is to migrate the data only because the functions included in the dump cause errors.<span lang="EN-CA"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p><p class="m_-685736410174138482m3313656910158576295msipfooter80f9317" style="margin:0in;margin-bottom:.0001pt"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#737373">Caterpillar: Confidential Green</span><span lang="EN-CA"><u></u><u></u></span></p></div></div><p class="MsoNormal">_______________________________________________<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" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><u></u><u></u></p></blockquote></div><p class="MsoNormal">-- <u></u><u></u></p><div><div><p class="MsoNormal">Darafei Praliaskouski<br>Support me: <a href="http://patreon.com/komzpa" target="_blank">http://patreon.com/komzpa</a><u></u><u></u></p></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></blockquote></div>