<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pg_dumpall on Christopher Tyler</title><link>https://cetyler.github.io/tags/pg_dumpall/</link><description>Recent content in Pg_dumpall on Christopher Tyler</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 10 Nov 2024 14:57:40 -0600</lastBuildDate><atom:link href="https://cetyler.github.io/tags/pg_dumpall/index.xml" rel="self" type="application/rss+xml"/><item><title>Upgrade from PostgreSQL 15 to 17 on Windows using pg_upgrade</title><link>https://cetyler.github.io/posts/2024/2024-11-11-pgupgrade/</link><pubDate>Sun, 10 Nov 2024 14:26:17 -0600</pubDate><guid>https://cetyler.github.io/posts/2024/2024-11-11-pgupgrade/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;p&gt;At work I needed to upgrade from PostgreSQL from 15 to 17.
The process is not that different than upgrading in Ubuntu but there were a couple
of items that threw me off.&lt;/p&gt;
&lt;h2 id="perform-backup"&gt;Perform Backup&lt;/h2&gt;
&lt;p&gt;This should be done prior to the update in case something goes wrong:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;CTyler@CTYLER_NB &lt;span style="color:#960050;background-color:#1e0010"&gt;&lt;/span&gt; C:\Program Files\PostgreSQL\&lt;span style="color:#ae81ff"&gt;17&lt;/span&gt;\bin &lt;span style="color:#960050;background-color:#1e0010"&gt;&lt;/span&gt; [&lt;span style="color:#ae81ff"&gt;08&lt;/span&gt;&lt;span style="color:#960050;background-color:#1e0010"&gt;:&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;22&lt;/span&gt;] 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#960050;background-color:#1e0010"&gt;❯&lt;/span&gt; &amp;amp; &lt;span style="color:#e6db74"&gt;&amp;#39;C:\Program Files\PostgreSQL\17\bin\pg_dumpall.exe&amp;#39;&lt;/span&gt; -p &lt;span style="color:#ae81ff"&gt;5432&lt;/span&gt; -U postgres &lt;span style="color:#f92672"&gt;-f&lt;/span&gt; D:\Backups\postgresql-ctyler_nb-&lt;span style="color:#ae81ff"&gt;20241107&lt;/span&gt;-&lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;.out
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This was based on the documentation
&lt;a href="https://www.postgresql.org/docs/current/app-pg-dumpall.html"&gt;PostgreSQL: Documentation: 17: pg_dumpall&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt; keep in mind that you should create a &lt;code&gt;pgpass.conf&lt;/code&gt;
(or &lt;code&gt;.pgpass&lt;/code&gt; for Linux):&lt;/p&gt;</description></item></channel></rss>