Re: Add SQL function to show total block numbers in the relation
От
btkimurayuzk
Тема
Re: Add SQL function to show total block numbers in the relation
Дата
Msg-id
7369fa1cc4d212cbcbd2cdbd6031f0c0@oss.nttdata.com
Ответ на
Список
Дерево обсуждения
Add SQL function to show total block numbers in the relation btkimurayuzk <btkimurayuzk@oss.nttdata.com>
Re: Add SQL function to show total block numbers in the relation Tom Lane <tgl@sss.pgh.pa.us>
Re: Add SQL function to show total block numbers in the relation Michael Paquier <michael@paquier.xyz>
Re: Add SQL function to show total block numbers in the relation btkimurayuzk <btkimurayuzk@oss.nttdata.com>
Re: Add SQL function to show total block numbers in the relation Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Add SQL function to show total block numbers in the relation Michael Paquier <michael@paquier.xyz>
Re: Add SQL function to show total block numbers in the relation Michael Paquier <michael@paquier.xyz>
Re: Add SQL function to show total block numbers in the relation btkimurayuzk <btkimurayuzk@oss.nttdata.com>
> btkimurayuzk 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.
I think it's a little difficult to introduce the block size using two
values `current block size` and `reference size`
for beginners who are not familiar with the internal structure of
Postgres,
This is the reason why the existing solution was insufficient.
What do you think?
Regards,
Yu Kimura
В списке pgsql-hackers по дате отправления
От: Gilles Darold
Дата: