<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi Henning,</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">thank you for your reply.<br>Interesting approach.<br>Can you tell me where I can find information on how to "Install the new 5.4.x kamailio postgres DB"?<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif">Cheers,</span><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif">Giovanni</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno gio 30 set 2021 alle ore 09:03 Henning Westerholt <<a href="mailto:hw@skalatan.de">hw@skalatan.de</a>> ha scritto:<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 lang="DE" style="overflow-wrap: break-word;">
<div class="gmail-m_-6942376919463295414WordSection1">
<p class="MsoNormal"><span lang="EN-GB">Hello Giovanni,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">You are doing a bigger step in one upgrade. I would suggest the following approach to get the DB differences:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="gmail-m_-6942376919463295414MsoListParagraph" style="margin-left:0cm"><span lang="EN-GB">Do a pg_dump -s for the database schema on the existing 4.4.x DB<u></u><u></u></span></li><li class="gmail-m_-6942376919463295414MsoListParagraph" style="margin-left:0cm"><span lang="EN-GB">Install the new 5.4.x kamailio postgres DB on a test server etc..<u></u><u></u></span></li><li class="gmail-m_-6942376919463295414MsoListParagraph" style="margin-left:0cm"><span lang="EN-GB">Do a pg_dump -s for the new database schema on the test server<u></u><u></u></span></li><li class="gmail-m_-6942376919463295414MsoListParagraph" style="margin-left:0cm"><span lang="EN-GB">Compare the two schemas e.g. with diff or similar tool<u></u><u></u></span></li><li class="gmail-m_-6942376919463295414MsoListParagraph" style="margin-left:0cm"><span lang="EN-GB">Use this to create an ALTER TABLE to (a copy) of the old database on a test server and test<u></u><u></u></span></li><li class="gmail-m_-6942376919463295414MsoListParagraph" style="margin-left:0cm"><span lang="EN-GB">Alternatively you can of course also use other SQL techniques to insert the old data into the new one<u></u><u></u></span></li></ul>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>Giovanni Tommasini - timenet srl<br>
<b>Sent:</b> Wednesday, September 29, 2021 10:06 AM<br>
<b>To:</b> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<b>Subject:</b> [SR-Users] upgrade kamailio 4.4.x-to-5.0.0 - PostgreSQL migrations<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif">Hi Dears,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif">I'm working on upgrading Kamailio from 4.4.6 to 5.4.0 in an installation where I use PostgreSQL<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif">I understand that I have to upgrade in steps by following these links:<br>
- <a href="http://www.kamailio.org/wiki/install/upgrade/4.4.x-to-5.0.0" target="_blank">http://www.kamailio.org/wiki/install/upgrade/4.4.x-to-5.0.0</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif">- <a href="http://www.kamailio.org/wiki/install/upgrade/5.0.x-to-5.1.0" target="_blank">http://www.kamailio.org/wiki/install/upgrade/5.0.x-to-5.1.0</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif">- <a href="https://www.kamailio.org/wiki/install/upgrade/5.1.x-to-5.2.0" target="_blank">https://www.kamailio.org/wiki/install/upgrade/5.1.x-to-5.2.0</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif">- <a href="https://www.kamailio.org/wiki/install/upgrade/5.2.x-to-5.3.0" target="_blank">https://www.kamailio.org/wiki/install/upgrade/5.2.x-to-5.3.0</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif">- <a href="https://www.kamailio.org/wiki/install/upgrade/5.3.x-to-5.4.0" target="_blank">https://www.kamailio.org/wiki/install/upgrade/5.3.x-to-5.4.0</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif">in most of these links, in the section "Database", I find only the subsection "MySQL Database Structure", but I don't find the indications for DB migrations
 for PostgreSQL Database.<br>
<br>
Only here <a href="https://www.kamailio.org/wiki/install/upgrade/5.2.x-to-5.3.0" target="_blank">https://www.kamailio.org/wiki/install/upgrade/5.2.x-to-5.3.0</a> I found both the subsection "MySQL Database Structure" and "PostgreSQL Database Structure".<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif">What does this mean?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif">- that I'm getting lost in a glass of water?<br>
- or that I don't have to make any changes to PostgreSQL?<br>
- or that the queries to be launched on PostgreSQL are the same as those for MySQL? I would discard this hypothesis<br>
- or that the wiki sections for PostgreSQL are missing? If this were the case, I could proceed with the update and then share the queries I launched to update the wiki.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif">thanks a lot<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Trebuchet MS",sans-serif;color:rgb(136,136,136)">Giovanni Tommasini<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>

</blockquote></div></div>