Below query can be used
SELECT pg_relation_size(object_id, 'main')/8192);
The pg_relation_size gives the disk space occupied by the object.
Since each page is of 8kB, the pg_relation_size size is divided by 8192 to give the page count.
Sharing knowledge is the ultimate key to gaining knowledge..
The only two things that stay with you for life
are you & your knowledge !
Live while you can!
Teach & inspire while you could &
Smile while you have the teeth.. 😉
No comments:
Post a Comment