It's much easier to use the routines in contrib/dbsize.
> Since we just had the discussion about index size, I have written a
> section for our administration manual that shows ways of finding the
> disk usage for specific tables and databases:
>
> http://candle.pha.pa.us/main/writings/pgsql/sgml/diskusage.html
>
> I also updated README.oid2name to show a sample session that analyzes
> disk usage.
--
Peter Eisentraut peter_e@gmx.net