Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwuZd-0003bl-9w for pgsql-general@arkaria.postgresql.org; Mon, 13 Dec 2021 23:17:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mwuZb-0000KV-PN for pgsql-general@arkaria.postgresql.org; Mon, 13 Dec 2021 23:17:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwuZb-0000FE-5j for pgsql-general@lists.postgresql.org; Mon, 13 Dec 2021 23:17:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwuZY-0000Uv-HA for pgsql-general@lists.postgresql.org; Mon, 13 Dec 2021 23:17:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1BDNHV7S189764; Mon, 13 Dec 2021 18:17:31 -0500 From: Tom Lane To: Klaudie Willis cc: "pgsql-general@lists.postgresql.org" Subject: Re: When Update balloons memory In-reply-to: References: <3484560.1638889073@sss.pgh.pa.us> Comments: In-reply-to Klaudie Willis message dated "Mon, 13 Dec 2021 23:07:50 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <189762.1639437451.1@sss.pgh.pa.us> Date: Mon, 13 Dec 2021 18:17:31 -0500 Message-ID: <189763.1639437451@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Klaudie Willis writes: > So, it seems like the index is central cog here: >> create index ind1 on alpha ((deltatime::date)); > where "alpha" is a partition tableset partitioned by (deltatime::date) > The general and simple updates like: >> update alphatable set gamma=gamma || "#postfix#" > makes the process memory balloon to the point of OOM. That seems like a bug, but please supply a self-contained test case rather than expecting other people to reverse-engineer one. regards, tom lane