<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Maintenance on Kaisekukun</title><link>https://netguide.jp/en/tags/maintenance/</link><description>Recent content in Maintenance on Kaisekukun</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Kaisekukun</copyright><lastBuildDate>Sat, 04 Jul 2026 02:44:02 +0900</lastBuildDate><atom:link href="https://netguide.jp/en/tags/maintenance/index.xml" rel="self" type="application/rss+xml"/><item><title>PostgreSQL Maintenance Basics for Stable Production</title><link>https://netguide.jp/en/software/postgres-database-maintenance/</link><pubDate>Mon, 22 Jun 2026 15:00:00 +0900</pubDate><guid>https://netguide.jp/en/software/postgres-database-maintenance/</guid><description>&lt;img src="https://netguide.jp/img/thumbnail/postgres-database-maintenance-en.png" alt="Featured image of post PostgreSQL Maintenance Basics for Stable Production" /&gt;&lt;p&gt;When running PostgreSQL in production, performance can degrade and transactions can bloat without you noticing. This article covers the maintenance fundamentals you need to keep PostgreSQL running smoothly.&lt;/p&gt;
&lt;h2 id="1-vacuum-cleaning-up-dead-tuples"&gt;1. VACUUM: Cleaning Up Dead Tuples
&lt;/h2&gt;&lt;p&gt;PostgreSQL uses MVCC (Multi-Version Concurrency Control), which means old row versions (dead tuples) linger in tables after updates and deletes. Left unchecked, tables bloat and performance suffers.&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-sql" data-lang="sql"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;-- Run a standard VACUUM (does not block other operations)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;VACUUM&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;-- Reclaim space to the OS (acquires table lock)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;VACUUM&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;FULL&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Production environments have &lt;code&gt;autovacuum&lt;/code&gt; enabled by default, but busy tables may need tuned settings:&lt;/p&gt;</description></item></channel></rss>