Re: dbsize patch

Поиск
Список
Период
Сортировка
От Andreas Pflug
Тема Re: dbsize patch
Дата
Msg-id 41FA208F.1070704@pse-consulting.de
обсуждение исходный текст
Ответ на Re: dbsize patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:
> Andreas Pflug <pgadmin@pse-consulting.de> writes:
>
>>Hm, these are all implementable as SQL functions, do we need these hard
>>coded too?
>
>
>>e.g.
>>create function aggregate_relation_size(oid) returns int8 as $CODE$
>>select sum(pg_relation_size(indexrelid)) from pg_index where indrelid=$1;
>>$CODE$ language 'SQL'
>
>
> Your suggestion would be more compelling if the example were correct ;-).
> Consider more than one index on the same table.

Hopefully SUM() will do the job.

Regards,
Andreas

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

Предыдущее
От: "Michael Paesold"
Дата:
Сообщение: Re: Continue transactions after errors in psql
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Continue transactions after errors in psql