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 1vJFHw-00G6G7-0q for pgsql-admin@arkaria.postgresql.org; Wed, 12 Nov 2025 18:09:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vJFHs-00DLMn-2a for pgsql-admin@arkaria.postgresql.org; Wed, 12 Nov 2025 18:09:44 +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 1vJFHr-00DLMc-35 for pgsql-admin@lists.postgresql.org; Wed, 12 Nov 2025 18:09:44 +0000 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vJFHo-007O26-2x for pgsql-admin@lists.postgresql.org; Wed, 12 Nov 2025 18:09:43 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 4F4D07A0161; Wed, 12 Nov 2025 13:09:38 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Wed, 12 Nov 2025 13:09:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= quadratum-braccas.com; h=cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1762970978; x=1763057378; bh=N/RBK7HishhLy3dKso67ngoAQjqRnPmK uS3k2Uey2wg=; b=QouGSgpujHtWB86cS6Y2RsE7kfvQCwxJOoot6vzhah8xy+qp fsICRAZVRYFM717wVSUpL2aOtDdFVzpunAjOiEOK530dKIsxOrywNE38hyEdm+pT 8PRAwHDSsIdSiG39on4IdkloHQfy1UcoSaPzGwsGNao9fZ83wBpPlSccscy52iNf p3kJ3UYEm67qUg/OlW04AYUmYWfl7x4dJmQZBIUutqtxJ69Lk/Fp55ZYEMGH//La YWCqwZM3cfJ3tY0wpWu5BiUsTBT4jjsm351YzpfLuM5VW8p7bUGWjcumr2jahnxA O8I4ZvpbYdo3co45Fc7lqs4ioFD138FthV/hEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1762970978; x=1763057378; bh=N/RBK7HishhLy3dKso67ngoAQjqRnPmKuS3 k2Uey2wg=; b=Wiv5JbvzumydSty8rhdFabwssqVHmglTChrdYrR0lODBOv3WUBB 0eNC6a5p8x6pr9u+P9PBlxFjrNnnb2XzFds8NY4EnSN0b0AZ5uiz63HSRFXNhvoI JFgkNiiT+WARnQJQ6CtVSwirGe+lw8Alt3MDOZmwLF/x4plMAazcVWtcC+TSrS+k aji8AodNEXpcqX1zZnH16VCN20IS8OE4/orkSJLkQt5r6BhWqiDjTin4uPUoJ2Xu EeJhP0eplk8H64d8XaVI54Bv7EqD4CJTCB3bMPJXlO/Xq8vvIa3pl04jkp28EXqp g6t0TBMwOSbRFaaYHNnABc9updzVBbOImzQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvtdegjeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvhffutgfgsehtkeertddtvd ejnecuhfhrohhmpefusghosgcuoehssghosgesqhhurggurhgrthhumhdqsghrrggttggr shdrtghomheqnecuggftrfgrthhtvghrnhepfeekhefftdffleduudegkeevtdekvdejgf egheefteefudeiveekhfelfffhuefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepshgsohgssehquhgrughrrghtuhhmqdgsrhgrtggtrghsrd gtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pehpghhsqhhlqdgrughmihhnsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprh gtphhtthhopehssghosgesqhhurggurhgrthhumhdqsghrrggttggrshdrtghomh X-ME-Proxy: Feedback-ID: i374947ac:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Nov 2025 13:09:37 -0500 (EST) Message-ID: <0a1745be-c54d-43b9-a90f-71e4c721c17c@quadratum-braccas.com> Date: Wed, 12 Nov 2025 11:09:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: pgsql-admin@lists.postgresql.org Content-Language: en-US From: Sbob Subject: vacuum process running for more than 2 days, still in scanning heap phase Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk All; We have a vacuum process that has been running for 2 days, the table is 12GB in total size and vacuum_cost_delay is at 0 The process shows as active in pg_stat_activity, and pg_blocking_pids returns no blockers select pg_blocking_pids(1581295);  pg_blocking_pids ------------------  {} (1 row) A select from from pg_stat_progress_vacuum where pid = 1581295; shows the phase as 'scanning heap' and the heap_blks_total, heap_blks_scanned, max_dead_tuples and num_dead_tuples  have shown the same values for at least the past hour pid                | 1581295 datid              | 16398 datname            | prod_server_1 relid              | 22532 phase              | scanning heap heap_blks_total    | 571437 heap_blks_scanned  | 344577 heap_blks_vacuumed | 0 index_vacuum_count | 0 max_dead_tuples    | 155388267 num_dead_tuples    | 199013 We actually tried a pg_terminate_backend on it and it does not die Thanks in advance for any advice