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 1l1bIq-0002G4-Cd for pgsql-docs@arkaria.postgresql.org; Mon, 18 Jan 2021 20:39:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l1bIp-0003gG-A1 for pgsql-docs@arkaria.postgresql.org; Mon, 18 Jan 2021 20:39:07 +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 1l1bIp-0003g9-4H for pgsql-docs@lists.postgresql.org; Mon, 18 Jan 2021 20:39:07 +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 1l1bIm-0005kQ-He for pgsql-docs@lists.postgresql.org; Mon, 18 Jan 2021 20:39:06 +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 10IKd2PG390006; Mon, 18 Jan 2021 15:39:02 -0500 From: Tom Lane To: chaodhib@gmail.com cc: pgsql-docs@lists.postgresql.org Subject: Re: the doc should mention one particular aspect of partial indexes In-reply-to: <161098966261.468.431083803607667410@wrigleys.postgresql.org> References: <161098966261.468.431083803607667410@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Mon, 18 Jan 2021 17:07:42 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <390004.1611002342.1@sss.pgh.pa.us> Date: Mon, 18 Jan 2021 15:39:02 -0500 Message-ID: <390005.1611002342@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Doc comments form writes: > I think the documentation should mention one particular aspect of b-tree > partial indexes: > Say we have a row that satisfy a partial index's predicate. That row will be > referenced by the partial index. Say now that this row gets updated in such > a way that the updated row no longer satisfies the predicate. The entry of > that row in the index (more precisely, the row previous version) is still > kept in a leaf node of the b-tree until a VACUUM is issued on the index's > table. How is this different from the behavior for any other dead row version? regards, tom lane