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 1tXNrV-0060rz-WB for pgsql-general@arkaria.postgresql.org; Mon, 13 Jan 2025 17:04:26 +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 1tXNrU-00BcXn-50 for pgsql-general@arkaria.postgresql.org; Mon, 13 Jan 2025 17:04:24 +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 1tXNrT-00BcXf-RG for pgsql-general@lists.postgresql.org; Mon, 13 Jan 2025 17:04:24 +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 1tXNrS-000Cly-16 for pgsql-general@lists.postgresql.org; Mon, 13 Jan 2025 17:04:23 +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:Cc:To:Sender:From:Date:Content-ID: Content-Description; bh=yfb1XgCNVUgwF7ZhLcT9UO7Eqe+AybAH5S4eeKHn30w=; b=Cxa67 BMU89RkTNB0EYO0dxKsE4vUerboTtE2xyJqp0/ndUEhue0+d5V2MAxz32W0VcvlxOhjCd7BH5hbNC W0hNgL8ClTeUREsbp14cvy/yiv+gO/53KMuZDGrvIjpYXYySGIJ0lURJcI5bcUdp/s2GJWzgQ4My3 Yy9jOEm/X2l8=; Received: from depesz by depesz.com with local (Exim 4.96) (envelope-from ) id 1tXNrR-00FyOL-2I; Mon, 13 Jan 2025 18:04:21 +0100 Date: Mon, 13 Jan 2025 18:04:21 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: =?utf-8?B?RcWfcmVmIEhhbMSxY8Sxb8SfbHU=?= Cc: "pgsql-general@lists.postgresql.org" Subject: Re: About PostgreSQL Query Plan Message-ID: Reply-To: depesz@depesz.com References: <1348181736777057@mail.yandex.com> <260121736786553@mail.yandex.com> <2341736787555@mail.yandex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2341736787555@mail.yandex.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jan 13, 2025 at 08:01:56PM +0300, Eşref Halıcıoğlu wrote: > Yes, you are right; it seems that only 4 batches had data changes. However, the query also accessed other batches and then removed > them again. What could be the reason for this and how can it be solved? >   > Obviously, I would like to understand this situation better and learn the solution. >   > I would be very grateful if you could help me. You would need to have explain analyze form some case where the update actually updates something. And query that you used would be helpful too. Best regards, depesz