Re: how to extract the page "address" from the ctid

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Marc Mamin <M(dot)Mamin(at)intershop(dot)de>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to extract the page "address" from the ctid
Date: 2015-07-01 05:04:34
Message-ID: CAB7nPqQAv-izLpZ4U-0mERdaxQTrU2eAXdodoEYJUoht528dvA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jun 30, 2015 at 10:56 PM, Marc Mamin <M(dot)Mamin(at)intershop(dot)de> wrote:
> while waiting for the new BRIN and improved GIN Indexes :-)
>
> I'd like to get a rough feeling, how some column's values are distributed on the internal pages.
> Is there a quicker way to extract the page reference from the ctid?

Isn't it something that pageinspect can do directly for you? It has
been extended for brin indexes.
http://www.postgresql.org/docs/devel/static/pageinspect.html
--
Michael

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Urs Berner 2015-07-01 05:39:59 Ubuntu 14.04 LTS install problem
Previous Message Andy Erskine 2015-07-01 04:14:58 Streaming Questions and Sizing