Re: Add SQL function to show total block numbers in the relation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: btkimurayuzk <btkimurayuzk(at)oss(dot)nttdata(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Add SQL function to show total block numbers in the relation
Date: 2019-10-30 14:09:47
Message-ID: 19282.1572444587@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

btkimurayuzk <btkimurayuzk(at)oss(dot)nttdata(dot)com> writes:
> I propose new simple sql query, which shows total block numbers in the
> relation.
> ...
> Of cource, we can know this value such as
> select (pg_relation_size('t') /
> current_setting('block_size')::bigint)::int;

I don't really see why the existing solution isn't sufficient.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-10-30 14:13:26 Re: Proposal: Global Index
Previous Message Dave Cramer 2019-10-30 14:03:01 Re: Binary support for pgoutput plugin