Bernd Helmle <mailings(at)oopsware(dot)de> writes:
> Since i'm not able to finish those other things in time, i wrapped up my
> existing code for this issue and came up with the attached patch, which
> should implement the behavior Tom proposed. These are two new functions
> pg_table_size() and pg_indexes_size(). This patch also changes
> pg_total_relation_size() to be a shorthand for pg_table_size() +
> pg_indexes_size().
Applied with minor corrections.
regards, tom lane