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 1vpGHl-004bKM-0u for pgsql-general@arkaria.postgresql.org; Mon, 09 Feb 2026 01:41:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vpGHi-008uip-1z for pgsql-general@arkaria.postgresql.org; Mon, 09 Feb 2026 01:41:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vpGHh-008uie-1e for pgsql-general@lists.postgresql.org; Mon, 09 Feb 2026 01:41:53 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vpGHf-00000001Cms-0J9S for pgsql-general@lists.postgresql.org; Mon, 09 Feb 2026 01:41:52 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 967817A001C; Sun, 8 Feb 2026 20:41:49 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Sun, 08 Feb 2026 20:41:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1770601309; x=1770687709; bh=ABUDySQeJwo8HwDkganWiHO3dg/v5hfAL25gCVDp9xg=; b= H6R60igLZkyDV5iGCmILkSimkL+dZbYjdvSaZBfcZuUcjihUpUTESdwnbnaqi60a w4p3AEwGxakwJBofdHN2p8gDg2u80XhdkMETju4v/+KVxqdWPCfhmlfzf+HJIzPt NwqHup4eDZRb2LHGq29muU2A/a+5rJDplRSUILkUAl8xsjcNhwDaD1/TR8bQG/0z NIe99ZTF3CZOjKXO+c/S9qqpIJ0Msr4rnwZXsjqPk9SouvXw2v/b2MS1cbB5wgkx Gne7A3j+ZJFjKgANN3jbFLLKU4QBKLwQIH2SRovgcUQ4NNarGtzxDKp/gL3cg/p4 mNKOOb1qGr+QbwBZ5BLOUw== 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:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1770601309; x=1770687709; bh=A BUDySQeJwo8HwDkganWiHO3dg/v5hfAL25gCVDp9xg=; b=eoYXwb6nz5wXVrIF2 EzmnsZEofa5EecC/13uAmIuPVk5rYrl88GCoDAu27A1GhOBJfHkhsYfg5KQMtYlr FLAhN1Ak4W8bSFgfEH8iWVTPNdoG3HyuS2lQ9Gd0DJjrM34+oYw4O4ZmA67mYPUI yp+eYApx+v7PnrjE/i1jK6dHe0hXgBJ74Llc1dciAQvyQROReHODfAzhKE6fZeIS DbXlSn4+4/s9GK44OJEQ6yPFBU8kUapVbSSuGbkVMkWuQasq4qR4Ne9uGM3jSIpJ oASkDjlRtuHq4NCgjbp6JeuPuVHlfltBNU+rw4ldUqgdD27mfUloTFE8A8PzD1Wa JxZwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduleehhedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertd dtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepiedvhfeiheehge euieeljeeitedtjeehudegfeelkedvleekhedtgfeiffefkedunecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepuggvvgdqkhgrhiesghhmgidruggvpdhrtghpthhtohepphhgsh hqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 8 Feb 2026 20:41:48 -0500 (EST) Message-ID: <5e7e85fc-f462-41aa-a239-0866a6f72f9b@aklaver.com> Date: Sun, 8 Feb 2026 17:41:47 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: REFRESH MATERIALIZED VIEW CONCURRENTLY is blocking autovacuum on table To: Dirk Krautschick , pgsql-general@lists.postgresql.org References: <918deb54-9d01-4a9c-abd3-d8412c9e6c80@gmx.de> Content-Language: en-US From: Adrian Klaver In-Reply-To: <918deb54-9d01-4a9c-abd3-d8412c9e6c80@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/8/26 17:17, Dirk Krautschick wrote: > Hi, > > I have a situation here where a frequent > > REFRESH MATERIALIZED VIEW CONCURRENTLY > > is preventing autovacuum on some tables kind of running into a circle of > growing. You will need to: 1) Show the original CREATE MATERIALIZED VIEW command. 2) Indicate if the blocked autovacuum is on the tables the view is pulling from or other tables. 3) Tell us the Postgres version and whether it is community version or a fork. > > Why is this acutally blocking autovacuum and what is the best practice > to prevent > this excelt just not refreshing the materialized view frequently? :-) > > Cheers > > Dirk -- Adrian Klaver adrian.klaver@aklaver.com