public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: OMPRAKASH SAHU <[email protected]>
Cc: [email protected]
Subject: Re: Vacuuming System DBs like postgres, template1
Date: Sun, 3 Aug 2025 21:47:48 -0700
Message-ID: <CAKFQuwafDdAKdYTWq_aC_=yXgUydCA__Aiim16C=ZT7Cr+M-vg@mail.gmail.com> (raw)
In-Reply-To: <CAOZWJqP0so=CBLXK70u1ibDnstVLmpPjv7YngNv-jxQzJLjv=w@mail.gmail.com>
References: <CAOZWJqP0so=CBLXK70u1ibDnstVLmpPjv7YngNv-jxQzJLjv=w@mail.gmail.com>

On Sun, Aug 3, 2025 at 8:45 PM OMPRAKASH SAHU <[email protected]> wrote:

> On few large DBs we run vacuum analyze manually as well, and I do see few
> people vacuuming the template1 db or postgres db also
>
> So just wanted to know vacuum system dbs is required or not?
>
> Pretty sure the answer is yes - though letting auto-vacuum do it is
sufficient - since something has to update the catalog column that
indicates the oldest transaction the database is aware of.  There isn't a
value for that which means "everything has been frozen" since it doesn't
get updated in the normal course of activity.

David J.


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Vacuuming System DBs like postgres, template1
  In-Reply-To: <CAKFQuwafDdAKdYTWq_aC_=yXgUydCA__Aiim16C=ZT7Cr+M-vg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox