how to extract the page "address" from the ctid

Поиск
Список
Период
Сортировка
От Marc Mamin
Тема how to extract the page "address" from the ctid
Дата
Msg-id B6F6FD62F2624C4C9916AC0175D56D8828BEBD0E@jenmbs01.ad.intershop.net
обсуждение исходный текст
Ответы Re: how to extract the page "address" from the ctid  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-general
Hello,

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.

e.g.:

SELECT c, count(*) FROM
(
       SELECT substring(ctid::text, '^.([^,]+)'),
        count(distinct myColumn) as c
        FROM myTable
        GROUP BY substring(ctid::text, '^.([^,]+)')
)foo
GROUP BY c order by 1 desc;


Is there a quicker way to extract the page reference from the ctid?

regards,

Marc Mamin



В списке pgsql-general по дате отправления:

Предыдущее
От: Leonard Boyce
Дата:
Сообщение: Hardware question
Следующее
От: Jimit Amin
Дата:
Сообщение: PgPool Configuration Document required