Answer is pretty clear, thank you David.
On Mon, Aug 16, 2021 at 12:31 AM David Rowley wrote:
> On Sun, 15 Aug 2021 at 23:41, otar shavadze wrote:
> > SELECT
> > (SELECT relpages FROM pg_class where oid =
> 'public.my_table'::regclass::oid ) AS table_pages_quantity_total,
> > (SELECT COUNT(DIST
On Sun, 15 Aug 2021 at 23:41, otar shavadze wrote:
> SELECT
> (SELECT relpages FROM pg_class where oid = 'public.my_table'::regclass::oid )
> AS table_pages_quantity_total,
> (SELECT COUNT(DISTINCT relblocknumber) FROM pg_buffercache WHERE relfilenode
> = (
> SELECT relfilenode FROM pg_class WHE
created pg_buffercache extension:
CREATE EXTENSION pg_buffercache;
restarted server and updated statistic for table :
VACUUM ANALYZE public.my_table;
then just tried to cache table in buffer:
SELECT * FROM public.my_table;
and then tried to get table total page quantity and how much pages are
ca