Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWSik-0008Cl-41 for pgsql-docs@arkaria.postgresql.org; Thu, 18 Feb 2016 17:50:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWSij-0002Ah-Ih for pgsql-docs@arkaria.postgresql.org; Thu, 18 Feb 2016 17:50:29 +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 1aWSih-000238-8j for pgsql-docs@postgresql.org; Thu, 18 Feb 2016 17:50:27 +0000 Received: from mail-vk0-x22d.google.com ([2607:f8b0:400c:c05::22d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aWSid-0003xr-ME for pgsql-docs@postgresql.org; Thu, 18 Feb 2016 17:50:26 +0000 Received: by mail-vk0-x22d.google.com with SMTP id k196so52091668vka.0 for ; Thu, 18 Feb 2016 09:50:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heroku-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=E5HIsqRG+euGFtqIfmVevOXjf21EmwQFsW0EwltNJgU=; b=ETQ+hki6/31MHgXFc72uW94K8hZCU3Zhhs5skXg+bklBo80P8uX90kqaPNEGEDRMao FUSOj1rdHxo8JceLLWeDjIzqASasMkm2uQSmkxbsKhmJJ9mKnOgkGHha7eWR+94m9F/Z xjTBL+V0xwRGgItfvWwZUN+vu5u6HRwqFrVCQtBWNiP+r5oQSGaC1zrbl8jE7inA0c+Z 0Xrn9x4gbvfBUXL+R5Jcu/tPl+4/bBFX3ucY3c67TNza3BpDOGXlaaNJyuWWK9WBy+dO UESnV4i9GMR5Aa8Dx/s/Yf7gqrpk9ErG5mCJNwgWgsBzmEZjvYIM46FvipU/OBesnjaa efSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=E5HIsqRG+euGFtqIfmVevOXjf21EmwQFsW0EwltNJgU=; b=LNAbbvYTri4G2GRLHiBts6WD+8Utu2QsW2IfMmT9o/fadxHyEX5a0MU+uMJF3xovcW YGoxZjR3Yq3YQnd3yweEA1Rb7n8dKG/MWft4OuGT89zAtZsVfb4e4iz/mIc2tH3gkBQK Ue5Tj2Ko9AfDEOrA4EJFIZmJCPlAvU7CrWpDgWxOJ39cPisPTKiJNVtx2u5V1dTZW3aS C4/fXE8Cx2Bo3hDqtUX1Bcu8JXV8+LsNEr/9AEym4vI6on6cx0oHXrTwLqFFuwyIuxlW QdomluSQWszEi2UaKpc1og4EJZX3/YiNZ4w1eLIy0Egro7MV6Y5tWwxMowVoYg3Dxuka 7Wsw== X-Gm-Message-State: AG10YOQxtKhvZNUJug+PAgMbEP1ZKoTg2c9IP0VhB0ntHwc5+E6pOBDqAIAIMZZzxixzh3vXp2lIH6ugr8GC5yKa MIME-Version: 1.0 X-Received: by 10.31.56.140 with SMTP id f134mr7438147vka.23.1455817820961; Thu, 18 Feb 2016 09:50:20 -0800 (PST) Received: by 10.31.75.2 with HTTP; Thu, 18 Feb 2016 09:50:20 -0800 (PST) In-Reply-To: <31925.1455817248@sss.pgh.pa.us> References: <56C5B2C7.7010604@nttcom.co.jp> <31925.1455817248@sss.pgh.pa.us> Date: Thu, 18 Feb 2016 09:50:20 -0800 Message-ID: Subject: Re: [HACKERS] The number of bytes is stored in index_size of pgstatindex() ? From: Peter Geoghegan To: Tom Lane Cc: =?UTF-8?B?5aSn5aGa5oay5Y+4?= , pgsql-docs@postgresql.org, Pg Hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) 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 On Thu, Feb 18, 2016 at 9:40 AM, Tom Lane wrote: > I think this is a bug and we ought to fix the code to include the > metapage in the reported index_size. Thoughts? I tend to agree, but I think you should note that specifically in the documentation. I'm in favor of tools like pgstattuple and pageinspect going into this kind of detail in their documentation generally. -- Peter Geoghegan -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs