Bruce Momjian wrote:
> Andreas Pflug wrote:
>
>>As a start for a bunch of instrumentation functions that should be
>>included in the backend as discussed previously, here are the dbsize
>>functions. The dbsize.c file should go to the usual place,
>>src/backend/utils/adt.
>
>
> How does this related to /contrib/dbsize? You have moved some
> functions, but not recreated others.
>
This patch includes only those functions that return the basic values
nobody but the server can provide; all others are some kind of derived
functions, as implemented by some personal needs. They should stay in
contrib, as they all have some limitations (e.g. implementing a subset,
as relation_size which only counts tables, or total_relation_size et al,
which are schema ignorant).
Regards,
Andreas