Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uin7f-00Fsau-7Q for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2025 04:48:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uin7d-00FluY-1R for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2025 04:48:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uin7c-00FluQ-Kp for pgsql-admin@lists.postgresql.org; Mon, 04 Aug 2025 04:48:28 +0000 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uin7a-000dRY-02 for pgsql-admin@lists.postgresql.org; Mon, 04 Aug 2025 04:48:27 +0000 Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-433fa926cb9so1101584b6e.2 for ; Sun, 03 Aug 2025 21:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754282904; x=1754887704; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6HDkGhT3AcofKq23vvOOsWfjV31TgYPWhGWjda6rIYE=; b=Oo+ToWnMbVpGShAAZ5mTE02rXYktfC+r8XP6ShE+Z6LJ0KyYoHHU9dMtGLtSb2zIX4 hcRsnaObY1zw3rDqLXPT9buXLyZSCTpzpUzfyYZ14lOykwv/bc2Y6f56yo+ROXlNTDIc JSufJFTNOlvsVHVFoL0Dj9ps2itWgnsBpXlMnboszqpmywCwf7/q1LDM81HR56MVAUmT ykxVsDSdBzbGNkHNCJzJlTDuSVSltOLC2iS7n5QqQUbbVYqgHkMtYIFCsqiBQcJFz1Fs fwMmP5COlv1oHYOUamRHPUA4L5ZiiLSsYZbMxkgwt4clh+snF3Pn5Mj0U2BduWZNBdIo irog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754282904; x=1754887704; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6HDkGhT3AcofKq23vvOOsWfjV31TgYPWhGWjda6rIYE=; b=aphspvJlwyv4PwBll5/cfLpGtfIEiOirOqxeAF3ngUG0UBsMjyykFUfGQRUcKZjRJ9 Vj1jhGRz+CJRIE5W+L/PpLdwQMf4kSAYPHGgMN+vyxsZmzOoJYxFbkgork0ojPJtA6Rw RxdnSX/8+hfMT9nUXInOVUVcsBF6BiiTmdLLdN6zMU0YFHWtXUQBWtW4vZvTvzFLNt4M EmD6gPisNKl+cpNEshjKCrztjIFCLZt6PAWYqRhj6CELQFC9ff5r+JVnLmekoyGLloRJ 9WFc3E5Czoyu9UpqeDiEklxQ9HhQZMgkqzgCzDiq8NmqtEfKVufYP9iAEv0KMJJeOEOg Sltw== X-Gm-Message-State: AOJu0YwZFJi/SsVegprnw19oVjZ36/5HJ/Frc2EtvNxcxImVQ3Hj+q/H gtPUI7sgfpMhYl05oUV3DnDAypDQqLNskxWWAMnq+p6psLcqi7EXuYgrzHyzW8xvM/0pEr37O2B kTWvZtByVUl5XDf1BwZRbRq+GKB8Vo84FfLb9 X-Gm-Gg: ASbGncsKt7d5pdbxxGGL0BQUjDI87hDcPHOmSKwAiVWHGLkj8bZozE25+dAHwnnV6pj tbB7SiZWgzUdOBcjhf7wChLpeDVHPHIydQCL5SL+kKwQaDyGeFSbcLJlWIErXw6x8x97R5pgdJ4 KEo3zWltiAxpIehTypz+AZ5FtZRT10MHbDDejhZ8ljUTyFZD0l13ceP4cD+LvC6pidV5IrqM6HQ ApxB0qzeyATh/f+5m0rkiVObMfxpUiNQYImiIoB X-Google-Smtp-Source: AGHT+IFmU641d3EJKVF5G328Yf62+K3vibG96JJF6yWYaZjee69TTLwNuHxmmSYCTgJVCvbojP310c6fKg5aZCbTnI8= X-Received: by 2002:a05:6808:80b1:b0:434:3f2:4d05 with SMTP id 5614622812f47-43403f25a29mr1821138b6e.20.1754282904309; Sun, 03 Aug 2025 21:48:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "David G. Johnston" Date: Sun, 3 Aug 2025 21:47:48 -0700 X-Gm-Features: Ac12FXw2TzT0QbKW2eVZLcET0g3-rRavjPZDqHXDfOb9_J_BBJWrd8iVMInYjzg Message-ID: Subject: Re: Vacuuming System DBs like postgres, template1 To: OMPRAKASH SAHU Cc: pgsql-admin@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000058d317063b82d1f0" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000058d317063b82d1f0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Aug 3, 2025 at 8:45=E2=80=AFPM OMPRAKASH SAHU 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. --00000000000058d317063b82d1f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Aug 3, 2025 at 8:45=E2=80=AFPM OMPRAKASH SAHU <= sahuop2121@gmail.com> wrote:=
On few large DBs we run vacuum analyze manually as well, and I do see f= ew people vacuuming the template1 db or postgres db also=C2=A0

So just wanted to know vacuum system= dbs is required or not?

Pretty sure the answer is yes - though letting auto-vacu= um do it is sufficient - since something has to update the catalog column t= hat indicates the oldest transaction the database is aware of.=C2=A0 There = isn't a value for that which means "everything has been frozen&quo= t; since it doesn't get updated in the normal course of activity.
=

David J.

--00000000000058d317063b82d1f0--