Re: dbsize contrib

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Re: dbsize contrib
Дата
Msg-id Pine.LNX.4.58.0408300555460.5698@linuxworld.com.au
обсуждение исходный текст
Ответ на dbsize contrib  (Andreas Pflug <pgadmin@pse-consulting.de>)
Ответы Re: dbsize contrib  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список pgsql-patches
On Sun, 29 Aug 2004, Andreas Pflug wrote:

> 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:
>
> - database_size(name)
> - relation_size(text)

I sent in a dbsize patch to make these functions tablespace aware...

> These are the well-known functions, tablespace-aware.
>
> - pg_tablespace_size(oid)
> - pg_database_size(oid)
> - pg_relation_size(oid)
> Tablespace-aware implementations, used by the upper functions.
> pg_relation_size will report sizes of indexes as well.
>
> - pg_size_pretty(bigint)
> Formatting of sizes, to display '146MB' instead of '152885668'

Nice.

Gavin

В списке pgsql-patches по дате отправления:

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: log_filename_prefix --> log_filename + strftime()
Следующее
От: "Ed L."
Дата:
Сообщение: Re: log_filename_prefix --> log_filename + strftime()