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 1uk0hR-00Edxi-1y for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Aug 2025 13:30:29 +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 1uk0hP-004aBE-Dd for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Aug 2025 13:30:27 +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 1uk0hP-004aB6-4l for pgsql-bugs@lists.postgresql.org; Thu, 07 Aug 2025 13:30:27 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uk0hM-001GWO-2W for pgsql-bugs@lists.postgresql.org; Thu, 07 Aug 2025 13:30:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version :References:Reply-To:Message-ID:Subject:To:Sender:From:Date:Cc:Content-ID: Content-Description; bh=1I//2iovAXxoyn6P2WsWdRYQxMZy+zrVTfaEOlFw5/A=; b=Dh92L 1j4rlFRplSfQoKljQuDX0iaqT97k7qoz6dzgFpLzDQM5hks8bhLxozGKc5YxLRcxWkZqRTSqhNOf+ 3MAcx/DVZ8QWXoH1LXuNrVaV4gocXUPq9KuGpuI0KcHHP0Td++x2lN+I3d5G4ZVihuPCOfXWKcjXu ff87J2we7LwY=; Received: from depesz by depesz.com with local (Exim 4.96) (envelope-from ) id 1uk0hL-005g1D-2G; Thu, 07 Aug 2025 15:30:23 +0200 Date: Thu, 7 Aug 2025 15:30:23 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: 1986comatose@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19014: Automatic aggressive VACUUM on template0 and template1 pg_shdepend runs every minute Message-ID: Reply-To: depesz@depesz.com References: <19014-3b29e6cbcb5f0b82@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <19014-3b29e6cbcb5f0b82@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Aug 07, 2025 at 07:47:58AM +0000, PG Bug reporting form wrote: > The following bug has been logged on the website: > We only actively use the ecount database, yet our logs show that an > automatic “aggressive” VACUUM is repeatedly running on > template0.pg_catalog.pg_shdepend and template1.pg_catalog.pg_shdepend at > roughly one-minute intervals. Since the template databases aren’t used for > normal operations, these vacuums seem unnecessary and are consuming system > resources. We believe this behavior is a bug. Please check what is: select now() - xact_start from pg_stat_activity order by xact_start asc nulls last limit 1 I bet you have some long transaction somewhere, and this table is shared (same table visible in all databases). Best regards, depesz