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 1oXOf2-0004kI-6E for pgsql-admin@arkaria.postgresql.org; Sun, 11 Sep 2022 15:14:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oXOf1-00073n-1K for pgsql-admin@arkaria.postgresql.org; Sun, 11 Sep 2022 15:14:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oXOf0-00073e-MJ for pgsql-admin@lists.postgresql.org; Sun, 11 Sep 2022 15:14:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oXOey-0000w8-JI for pgsql-admin@lists.postgresql.org; Sun, 11 Sep 2022 15:14:14 +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 28BFE947816927; Sun, 11 Sep 2022 11:14:09 -0400 From: Tom Lane To: Leandro Bugalho cc: pgsql-admin@lists.postgresql.org, Zaid Shabbir Subject: Re: Error when execute insert/update In-reply-to: References: Comments: In-reply-to Leandro Bugalho message dated "Sun, 11 Sep 2022 08:35:28 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <816925.1662909249.1@sss.pgh.pa.us> Date: Sun, 11 Sep 2022 11:14:09 -0400 Message-ID: <816926.1662909249@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Leandro Bugalho writes: > This upgrade is in our follow up. But unfortunately this issue > occurred previously our upgrade. Now we need to fix this. ANy > suggestions ? There is no magic bullet that will avoid the need for the cleanup VACUUM, if that's what you mean. What you should be thinking about is how to prevent a recurrence of the situation. In ordinary circumstances autovacuum ought to have kept you out of trouble ... have you disabled that, or changed settings to render it insufficiently aggressive? regards, tom lane