Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWUd4-0000h0-Ho for pgsql-docs@arkaria.postgresql.org; Thu, 18 Feb 2016 19:52:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWUd4-00087q-4f for pgsql-docs@arkaria.postgresql.org; Thu, 18 Feb 2016 19:52:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aWUd3-00087g-Sy; Thu, 18 Feb 2016 19:52:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aWUcv-0006ZD-OQ; Thu, 18 Feb 2016 19:52:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u1IJqWE5013292; Thu, 18 Feb 2016 14:52:32 -0500 From: Tom Lane To: Peter Geoghegan cc: =?UTF-8?B?5aSn5aGa5oay5Y+4?= , pgsql-docs@postgresql.org, Pg Hackers Subject: Re: [HACKERS] The number of bytes is stored in index_size of pgstatindex() ? In-reply-to: <12435.1455823990@sss.pgh.pa.us> References: <56C5B2C7.7010604@nttcom.co.jp> <31925.1455817248@sss.pgh.pa.us> <377.1455818470@sss.pgh.pa.us> <10922.1455821371@sss.pgh.pa.us> <12435.1455823990@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 18 Feb 2016 14:33:10 -0500" Date: Thu, 18 Feb 2016 14:52:32 -0500 Message-ID: <13291.1455825152@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org I wrote: > Peter Geoghegan writes: >> I think we should change it. It seems like a bug to me. > Me too. Is it enough bug-like to be something to back-patch, or should > we just change it in HEAD? Actually, there's a significantly worse bug here: I just realized that the page type tests are done in the wrong order. A deleted page that was formerly a leaf will be reported as though it was a live leaf page, because both the BTP_LEAF and BTP_DELETED flags are set for such a page. It looks like this was done correctly to begin with, and I broke it in d287818eb514d431b1a68e1f3940cd958f82aa34. Not sure what I was thinking :-( Anyway, I think that puts the final nail in the coffin of the idea that the current code's behavior is sane enough to preserve. I think we should fix all these things and back-patch 'em all. regards, tom lane -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs