Re:

From: otar shavadze <oshavadze(at)gmail(dot)com>
To: Michael Goldberg <mic(dot)goldberg(at)gmail(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re:
Date: 2021-08-15 11:12:08
Message-ID: CAG-jOyBVQUQmCzmrxFpU8Mua-iMHCqOze+CA-3bYOf1hBEGYag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you.

On Sun, Aug 15, 2021 at 2:15 PM Michael Goldberg <mic(dot)goldberg(at)gmail(dot)com>
wrote:

>
> On Sun, Aug 15, 2021 at 12:49 PM otar shavadze <oshavadze(at)gmail(dot)com>
> wrote:
>
>> How measure table total pages (block) count? would be this correct way?
>> :
>>
>> SELECT pg_table_size('my_table'::regclass) / current_setting('block_size')::BIGINT;
>>
>> Did you try:
> SELECT relpages FROM pg_class WHERE relname='my_table';
>
> Best,
> Michael
>

In response to

  • Re: at 2021-08-15 10:14:55 from Michael Goldberg

Browse pgsql-general by date

  From Date Subject
Next Message Digimer 2021-08-15 19:16:50 Single mater replica setup for an existing DB
Previous Message Michael Goldberg 2021-08-15 10:14:55 Re: