<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>postgresql - Tag - FH Jurnal</title>
        <link>https://sukangetik.com/tags/postgresql/</link>
        <description>postgresql - Tag - FH Jurnal</description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>feri.harsanto@gmail.com (fhpermadi)</managingEditor>
            <webMaster>feri.harsanto@gmail.com (fhpermadi)</webMaster><lastBuildDate>Thu, 30 Nov 2023 19:50:04 &#43;0700</lastBuildDate><atom:link href="https://sukangetik.com/tags/postgresql/" rel="self" type="application/rss+xml" /><item>
    <title>Postgresql Vacuum</title>
    <link>https://sukangetik.com/tech/snippets/postgresql-vacuum/</link>
    <pubDate>Thu, 30 Nov 2023 19:50:04 &#43;0700</pubDate>
    <author>fhpermadi</author>
    <guid>https://sukangetik.com/tech/snippets/postgresql-vacuum/</guid>
    <description><![CDATA[When is VACUUM needed 1 2 3 4 5 6 7 8 9 10 SELECT relname AS table_name, n_live_tup, n_dead_tup, last_vacuum, last_autovacuum FROM pg_stat_user_tables WHERE n_dead_tup &gt; (n_live_tup * 0.2); -- Using 20% as the threshold In this query:
relname is the name of the table.
n_live_tup is the number of live tuples (rows) in the table.
n_dead_tup is the number of dead tuples in the table.
last_vacuum shows when the last manual VACUUM was performed on the table.]]></description>
</item>
</channel>
</rss>
