Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> I have written a small function that show how many tuples are dead
> etc. in a specified table.
Dead according to whose viewpoint? Under MVCC this seems to be
in the eye of the beholder...
> Shall I add this function into contrib directory?
No real objection, but you should carefully document exactly what
the results mean.
BTW, I'd suggest accounting for free, reusable space separately from
"overhead".
regards, tom lane