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.96) (envelope-from ) id 1vfvWL-0068Zi-1w for pgsql-admin@arkaria.postgresql.org; Wed, 14 Jan 2026 07:42:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vfvWJ-008aiv-1m for pgsql-admin@arkaria.postgresql.org; Wed, 14 Jan 2026 07:42:23 +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.96) (envelope-from ) id 1vfvWI-008ain-36 for pgsql-admin@lists.postgresql.org; Wed, 14 Jan 2026 07:42:23 +0000 Received: from mail-francecentralazlp170130007.outbound.protection.outlook.com ([2a01:111:f403:c20a::7] helo=PA4PR04CU001.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vfvWG-000No9-1b for pgsql-admin@lists.postgresql.org; Wed, 14 Jan 2026 07:42:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TkNsy67TMESdCUWUL2aeLTEAzZxvLvXG5pKgHgXqko8HhTHhhQ3EUFbjlV8/ZPwSkM2r2BWXHKZCLfN/NhTlYpUeOt4CMD7okOo087n6XIsaSzNFE/Oe8IPUE+90piAhv/LYIhXRNMZt9s4uI69VsKANRweDyOKn2Fs3is9EJRJdupqkXgMoZmSm4s8L2lJLTjDlCLeZIrqCBu/fLZFEu9xJ5z80n+2Z89FigRVCcT3QDfFew9M4KeFIRWAL2mONc8MKqZpvO0p2LxMSSCOevqnuKQHn7h+s1fJMdiY2WKHrvqVDkSGdNPYFw1WkifXhqkJqgzJquHMDLP0AQ5KW8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c1QpqqkItMPEZ+Msbt+TWr4BoF/Vt8HjENj28b78kMc=; b=k2oXE2tZai9xZWmVFjA1MKhwrjGKaiZy2S2uXwKc+dEaJwZD5y3GRTADqj/3909/hpgHsHC6vaE3zJwetxozA3Ll4fzRXkRpB0j/i0/uoGjM+WM91SIS+EJDjthMrX2tcHyO5gBcD+qGAYCMYJ3IpeqwvcMhf72UkDht9K/kRkeX2vrfdfvcqkaJOe2+9CFxVQj03Qgkd3VeFieuPCRb2a7180LFkkM5xbOK2l6XJtqw4do/KVHLgsS4J8P/kcdYXGHUiEAD1FQmw6TWwU/mfgF1udtGG9EmUK7bMKgLY7Gk7UZaHKCMtcWNPMslQ9ZbN6UFK5ztNRS9TXb/a7GfYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=parlamentib.es; dmarc=pass action=none header.from=parlamentib.es; dkim=pass header.d=parlamentib.es; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=parlamentib.es; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c1QpqqkItMPEZ+Msbt+TWr4BoF/Vt8HjENj28b78kMc=; b=KJwcHTo39y8FDzGHieUazoJ2/tRiZrKBG9JVIhrbmFOeVrQ61id5XJARuLpInN6WjkCGWlcjaNzsbhnA1Lw4ssaQFf10JXGkXSlxmoN5/Od6WA6z1O6p0t50JXkM1a8/NHKoRg7aOaSmqXWk9P+xZ5+VV958zk6VvplgzX8FCX3/LkbLVXTa2smNI6mnXai27t+2eWau+3MGdcItpba1NEDxcdK127FOMm+r3c+KIdpioNZfhb8DjYoTjxMGsiOBtVHb+FxueihT3dMFeqVulSoqoALJZh1iylYWlZUQbar1uCgjGLNGwG2/2MNw/Ki0XzzMDbVwf+CA8FJsG/Qrkg== Received: from DU0PR08MB7921.eurprd08.prod.outlook.com (2603:10a6:10:3c8::5) by DB3PR08MB8890.eurprd08.prod.outlook.com (2603:10a6:10:43a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9499.7; Wed, 14 Jan 2026 07:42:16 +0000 Received: from DU0PR08MB7921.eurprd08.prod.outlook.com ([fe80::530a:276b:e335:21d3]) by DU0PR08MB7921.eurprd08.prod.outlook.com ([fe80::530a:276b:e335:21d3%5]) with mapi id 15.20.9499.002; Wed, 14 Jan 2026 07:42:16 +0000 From: =?Windows-1252?Q?Gabriel_Guillem_Barcel=F3_Soteras?= To: "rmeyer@sevroconsulting.com" CC: Pgsql-admin Subject: Re: VACUUM/ANALYZE Strategy for Low-Activity PostgreSQL 15 Instance Thread-Topic: VACUUM/ANALYZE Strategy for Low-Activity PostgreSQL 15 Instance Thread-Index: AQHchGJXKjS2rQK4KU+5eKwTs92TzrVQWtAAgAABBACAAO3LUw== Date: Wed, 14 Jan 2026 07:42:16 +0000 Message-ID: References: <002034bdb202a87b97de38648b0e35d8ac6db0ac.camel@cybertec.at> <0225023895511123aac84ea16daa1363@sevroconsulting.com> In-Reply-To: <0225023895511123aac84ea16daa1363@sevroconsulting.com> Accept-Language: es-ES, en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-reactions: allow authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=parlamentib.es; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DU0PR08MB7921:EE_|DB3PR08MB8890:EE_ x-ms-office365-filtering-correlation-id: 7207af83-3fc5-4b2c-8898-08de534070a5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|4022899009|376014|1800799024|366016|7053199007|38070700021|13003099007|8096899003; x-microsoft-antispam-message-info: =?Windows-1252?Q?RYJIsV/Zn6RdnrQ42WKNGZvYwdCy0z7JufofiHw1S8F0+yBQUQtK191q?= =?Windows-1252?Q?NTnqPHZ+1uGFHciRkDokcPaBxsz88YumigXNV8AOVYg6fIpyxdgoGXaU?= =?Windows-1252?Q?CN1VezAKrbbkz0SK1x8uGBRd4ayTzj9GeNYS7VigID1BzxbEf0cudu3v?= =?Windows-1252?Q?8IU1y0I5pBaxToMnwKckAwTPEtNihrf1fXnbwBgM0vi5btv5xxxQOIJs?= =?Windows-1252?Q?UMzfJMWUcIpxLS5FNN5FHZz/m+23S+CeOjMnhw28WgQbLrIGmhteYH6T?= =?Windows-1252?Q?AbdcvgqZjukWzsBXoEItN3Zk0QOut9ycVy6UC4thM8+yE083RyofVqWt?= =?Windows-1252?Q?Rawq5wvhye0rZUNWjJfuUZL0ZYJU9FvfgUncLEY1F2TFAMPnlrBGIgyA?= =?Windows-1252?Q?OWgI33ea8iHw1WfIySRIrbCsO/TshsB4FB4B77OQ/jPWHJP1wFDEeCEn?= =?Windows-1252?Q?KlWyJf7+q6MNXS1Dl254U+ylxdctaW0lehd9TN0ineoPnY7lnNo5ZfVa?= =?Windows-1252?Q?Tj5US5L9BdTZFVZGdq/ggN3MWD6A/lavFPzaHCmbxaTbhbUbZFvzZdoR?= =?Windows-1252?Q?rSQWwyyQd6ZpXO7ml/5U78oNfT0TtwLFSPnErelx9uX7dF9/9Enl04M/?= =?Windows-1252?Q?kPVEH5teT16sCyHmUViD701kSORfzQ8vUG/aKCVfqApV3g79XxrxS3yN?= =?Windows-1252?Q?vd/i7YQryDfTrLCN5ELqkVloZ7+SwqtFSQmmyHZMaQeNGElo5lb/IF4z?= =?Windows-1252?Q?+UUpwrrnpqX08U/YSnKbTaxiT6aJfGvFiU7NRpvUmIR0UrCZs8lvocap?= =?Windows-1252?Q?EGsJFoyFtlh7zfwpbzSgeuret8EZqCVkcG85ZX6YsO6cuYLix0CvOUaI?= =?Windows-1252?Q?vYlCxFtUbDLRfg9S+/3+drF9M4NAM16yusT9PFq/Q0kGI+CHHKZM/075?= =?Windows-1252?Q?nvOOhdSHwQS5hR95OhfA46f72HEXC8RweTk+N+lEYiea79CHKq/J7Jmy?= =?Windows-1252?Q?5Oc/6XPoHh2gPylQGjZwOMWiXnujwAopAAMvFkT461pzGDZ7+QmBURfZ?= =?Windows-1252?Q?hu/ET7Rg0x/LMomo9xOf24qEarRk5UiUXxiqVCxHjj8HdN2PpFBLfzOD?= =?Windows-1252?Q?2NYxbkNGs0gQRHGN3pPR/6hgugLyKFgSUaL+mjq6oTpkhwV4l+ryX2Y7?= =?Windows-1252?Q?uwdkad/U9q32eDcdht0twn0pYneunZVQCJYJ6TGM6dRi3KJ63vhMZimS?= =?Windows-1252?Q?JDfD3dcLb0vHHySpqdvli4o2KCDbFEGTDlqhRTYfwxnCsCTCLz1nxL9D?= =?Windows-1252?Q?5vRQTnRLMjXolyNwuyfnW5ZPaGcBG3CR+Ju9d1hFwWcRjGeLNCg6KN8v?= =?Windows-1252?Q?4I3+TA5mFel4hcfs3KmD4j03u8if+UVH+X55SNXSQQoGYLHq4AdMAVDz?= =?Windows-1252?Q?xAzqeM2iZlFL3UKet0wr0KJpi7jkxNPaUgjueISy26tOiEVktjv/JEr7?= =?Windows-1252?Q?Jg2BAEVlCN71Y67vk9DW5Y2wv5EzRQlgE136tMikY32KyFkY71xGtsk2?= =?Windows-1252?Q?cqmbFV8mLk+NpEmvgZbjuf6wP8CvwfeFaDEXajPV/dXuJyld7Ie2v66i?= =?Windows-1252?Q?zmQphokRXOZm7prOpEfS3zCh?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR08MB7921.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(4022899009)(376014)(1800799024)(366016)(7053199007)(38070700021)(13003099007)(8096899003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?aY9uRg5X7CCq/X/1OvbrjgktfkI9wUefrfSjcvRpyMD/JT0NHvrHb7MU?= =?Windows-1252?Q?xA0x8Igo4o9Ve8j08xboIqEu1W3sZtDxKjUojPDEtHzgRZfBTXEK7Qhz?= =?Windows-1252?Q?Opfg1Qn5IdKL9/8UZzcwogaRFZvHirhtQJJNMDBZ0a1Rc/V+IbmQA66m?= =?Windows-1252?Q?bRuExbIX34wcXYpWwlVzdIkfmf78j3Efb0FDJIg3cx81gSnvcQQGX9Wi?= =?Windows-1252?Q?uIYkRCPg5l7+Iz9OSuQ9UX2sO92MN7qQQ4nYKcnDYGMI6mgD0gyuXCrP?= =?Windows-1252?Q?BWbAXyuKD8mQNYZ2frCDkYC8MJ2pM0cUeT2Ricb0Ua3raLeSYSnxFyDC?= =?Windows-1252?Q?7obfZYyHTtV+c0fOfDbU5wrpH1MmGvUwoDRlY97XhIlDT7RxDAq9VNqN?= =?Windows-1252?Q?ahtVbBhP2exn79ocyrUCZSp6n7Hjlt6ZAIMClz6lTFzn9KhVhZ+uQq9q?= =?Windows-1252?Q?YkaHY0GoFb0905/orD7Mn/qC82MGbs1D9YPzFMj7kIhaAj2j69/r+Euw?= =?Windows-1252?Q?YXa8TTXszmfS6TOiVpCmVsZa4CesAYj6RpyumYzlhJnTHyKTRe/Xdd8y?= =?Windows-1252?Q?h9dknF6TP/+9bGqSPBh74SboInQBh8OONPEA1xvzrGRh0H6zNhBT/8iV?= =?Windows-1252?Q?BW1EY1hTF1aGXcmp+L03iVHrGhNJi7H3Y0N2XhFhQPrwEIQdb8yWDb1i?= =?Windows-1252?Q?PnW77jShrBjA0PLDYHuoaO5ZeeKbdoeDp79LgkTtDTa2qp0FKCR83rsG?= =?Windows-1252?Q?tmtTa40T0KuxWzRxWwoIF0oXNIXimz1uoQr+Awuh/JsYgjIn7MmpyTkw?= =?Windows-1252?Q?o2k5o6xx+eB0epqiFFUD4AgK5TubLhmSrtANsWnh9IxyO1HolIXr5xpu?= =?Windows-1252?Q?u+w6vhfp+CmtbtaQv+iDn2Mzw2rn5YhFIKV0wo9ErDvKBk1yD9Xwt3Dq?= =?Windows-1252?Q?0YNUiMJMz1V3X1HflpPBHjJTiy9x/PU+ZjPijrG0WWEc5g8YO4U/qQpR?= =?Windows-1252?Q?51szL72GZHHsOe1lXI9pt1SDnxX/JNNH06O4YEfBLlXobOC0QoZoJqyY?= =?Windows-1252?Q?AcS1VFdBrCQ5eJCWlsoofVsgVG/oHhUVkWjhEstSiaswxzFqGKwbH93A?= =?Windows-1252?Q?K8C5bq9V8Yc0XKS8uXX063+UD7krfObzgMjo1s07GE5kBcqwXdUCDUeR?= =?Windows-1252?Q?n0aNBVd/UechwOIf/ImYO6P6TMzo/5GZLBH+yU7aWWO5497kLjWhIvj/?= =?Windows-1252?Q?i4oYKanSACZxRYr8c8n4KT9+Ui7lgzESpqEJ5DJUxdLKbPybjabXUvED?= =?Windows-1252?Q?tKGz3j2H5+BJUoIPmM6rqYITy2ye8PquwWCnag1StVoLlN0S66NyIe0k?= =?Windows-1252?Q?aT4igjO6mysMHzM+m2DnCkJoTwPj9za65O6DQSnNkm/XhNl7Jb1+o7ly?= =?Windows-1252?Q?irfYPWi2RHoSYpf/akCY+LgqpR2xu/u7m7N0X23s6mWkPXASYRUYyUhf?= =?Windows-1252?Q?/BHogmW+Bz4QwyjNhLlWFPh2K7K8Qufg8htXm2SBwQF0Gk8oYmMKzwye?= =?Windows-1252?Q?a9H+RBTm/0uAwIuAbqN2CP4m6vsI8/daNKduDwbQJ5ELpT+uK/2MaDiO?= =?Windows-1252?Q?pdJWOOXzp/JEfR4uRXiyh52iZcTup4EEbERlFH/bgYzbH2fFnS0SYfVY?= =?Windows-1252?Q?pCtxTlnZOcbV/W0V8CxOj9dphLQPs5sRncUvXIaUAPOevFfBlCB5hFEu?= =?Windows-1252?Q?gNhrO9lEc3xy7b2kIiH8vCr3PaqN8u2vme7swQQe1niKpNcJFDEe3aEZ?= =?Windows-1252?Q?7dTo0Qpa3vt0zy3Dh//3M+qw6Tr1mf88Ea7Z2Gfo8NTd51D+knmKlC9q?= =?Windows-1252?Q?6kx/IlcLRnchX4EhYyyda6lP0aN22R+MFHM=3D?= Content-Type: multipart/alternative; boundary="_000_DU0PR08MB79213FAA21D2EA1C915529C2A68FADU0PR08MB7921eurp_" MIME-Version: 1.0 X-OriginatorOrg: parlamentib.es X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU0PR08MB7921.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7207af83-3fc5-4b2c-8898-08de534070a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jan 2026 07:42:16.5618 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: eb8f8b70-f944-47bc-a844-e35b86fd8b5f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lfbdtKOZAKp8/4gZSU2fectucZc+EoV+HWJ1MEVQRqRKZDLsgPNfN6GrYPmii+y4yX5tVDTq6k/2H2deY3pLMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR08MB8890 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_DU0PR08MB79213FAA21D2EA1C915529C2A68FADU0PR08MB7921eurp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable https://www.pgadmin.org/support/list/ Go to PGLister Management link... From: Rich Meyer Date: Tuesday, 13 January 2026 at 18:30 To: Laurenz Albe Cc: Gabriel Guillem Barcel=F3 Soteras , Pgsql-admi= n Subject: Re: VACUUM/ANALYZE Strategy for Low-Activity PostgreSQL 15 Instanc= e Hi, sorry about this but I cannot for the life of me unsubscribe from these= emails. Can anyone help? --- Rich Meyer Sevro Consulting rmeyer@sevroconsulting.com 732-991-6249 On 2026-01-13 12:26 pm, Laurenz Albe wrote: On Tue, 2026-01-13 at 08:19 +0000, Gabriel Guillem Barcel=F3 Soteras wrote: We have a healthy PostgreSQL 15 instance (installed from the official Postg= res repository) running on Red Hat 9. It serves several databases for internal SMB applicat= ions. The environment is stable=97apps perform well, disk usage is fine, and the = system is not under heavy load. After integrating PostgreSQL into our monitoring system, I noticed warnings= related to VACUUM and ANALYZE. Some tables have never undergone these maintenance operations,= or the last run was 30=96200 days ago. These databases have very few deletions, and many ta= bles show no growth at all=97typical for internal SMB apps. I know this topic comes up often, but should I schedule a monthly VACUUM + = ANALYZE via a cron or systemd timer, while still keeping autovacuum enabled? We=92re also monitoring table bloat, which is currently under 1%, suggestin= g that manual intervention may not be necessary and that autovacuum is doing its job when= needed. I'd call this a false positive warning from the monitoring system, and ther= e is nothing you have to do except to disable this test. It is perfectly healthy for a = table with few updates and deletes to ve autovacuumed very rarely. What you should monitor is a) whether pg_stat_all.tables.n_dead_tup is much more than 0.2 * pg_class.r= eltuples + 50 (that would indicate that autovacuum doesn't trigger, is too slow or can= not make any progress owing to long-running transactions) b) whether age(pg_class.relfrozenxid) exceeds 300 million (that would indicate a problem with anti-wraparound autovacuum) Yours, Laurenz Albe --_000_DU0PR08MB79213FAA21D2EA1C915529C2A68FADU0PR08MB7921eurp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
https://www.pgadmin.org/support/list/

Go to PGLister Management link...

From: Rich Meyer <rmeyer@sevroconsulting.com>
Date: Tuesday, 13 January 2026 at 18:30
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Gabriel Guillem Barcel=F3 Soteras <gbarcelo@parlamentib.es>= ;, Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: VACUUM/ANALYZE Strategy for Low-Activity PostgreSQL 15 = Instance

Hi, sorry abo= ut this but I cannot for the life of me unsubscribe from these emails. Can = anyone help?


= ---
Rich Meye= r
Sevro Consulting
rmeyer@sevroconsulting.com
732-991-6249

On 2026-01-13 12:26 pm, Laurenz Albe wrote:

On Tue, 2= 026-01-13 at 08:19 +0000, Gabriel Guillem Barcel=F3 Soteras wrote:
We have a healthy Post= greSQL 15 instance (installed from the official Postgres repository)
running on Red Hat 9. It serves several databases for internal SMB applicat= ions.
The environment is stable=97apps perform well, disk usage is fine, and the = system is not
under heavy load.

After integrating PostgreSQL into our monitoring system, I noticed warnings= related to VACUUM
and ANALYZE. Some tables have never undergone these maintenance operations,= or the last run
was 30=96200 days ago. These databases have very few deletions, and many ta= bles show no growth
at all=97typical for internal SMB apps.
I know this topic comes up often, but should I schedule a monthly VACUUM + = ANALYZE via a cron
or systemd timer, while still keeping autovacuum enabled?

We=92re also monitoring table bloat, which is currently under 1%, suggestin= g that manual
intervention may not be necessary and that autovacuum is doing its job when= needed.

I'd call this a false positive warning from the monitoring system, and ther= e is nothing
you have to do except to disable this test.  It is perfectly healthy f= or a table with
few updates and deletes to ve autovacuumed very rarely.

What you should monitor is

a) whether pg_stat_all.tables.n_dead_tup is much more than 0.2 * pg_class.r= eltuples + 50
   (that would indicate that autovacuum doesn't trigger, is too s= low or cannot make any
   progress owing to long-running transactions)

b) whether age(pg_class.relfrozenxid) exceeds 300 million
   (that would indicate a problem with anti-wraparound autovacuum= )

Yours,
Laurenz Albe


--_000_DU0PR08MB79213FAA21D2EA1C915529C2A68FADU0PR08MB7921eurp_--