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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Add SQL function to show total block numbers in the relation
Дата
Msg-id 19282.1572444587@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 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  (Michael Paquier <michael@paquier.xyz>)
Re: Add SQL function to show total block numbers in the relation  (btkimurayuzk <btkimurayuzk@oss.nttdata.com>)
Список pgsql-hackers
btkimurayuzk <btkimurayuzk@oss.nttdata.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



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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Binary support for pgoutput plugin
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Proposal: Global Index