The current implementation of dbsize doesn't handle tables in
tablespaces correctly, and is quite restricted on objects covered (only
tables and databases, but not tablespaces and indexes).
The attached patch contributes:
These are the well-known functions, tablespace-aware.
Tablespace-aware implementations, used by the upper functions.
pg_relation_size will report sizes of indexes as well.
Formatting of sizes, to display '146MB' instead of '152885668'
Description: text/x-patch (12.7 KB)
pgsql-patches by date
|Next:||From: Reini Urban||Date: 2004-08-29 10:49:50|
|Subject: Re: cygwin 8.0.0beta1 postmaster/syslogger.c, port/dirmod.c,|
|Previous:||From: Andreas Pflug||Date: 2004-08-29 09:14:54|
|Subject: Re: log_filename_prefix --> log_filename + strftime()|