Dbsize backend integration

Поиск
Список
Период
Сортировка
От Dave Page
Тема Dbsize backend integration
Дата
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E490E7CA@ratbert.vale-housing.co.uk
обсуждение исходный текст
Ответы Re: Dbsize backend integration  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
The attached patch integrates dbsize functions into the backend, as per
discussion on -hackers. The following functions are included:

pg_relation_size(text)   - Get relation size by name/schema.name
pg_relation_size(oid)    - Get relation size by OID
pg_tablespace_size(name) - Get tablespace size by name
pg_tablespace_size(oid)  - Get tablespace size by OID
pg_database_size(name)   - Get database size by name
pg_database_size(oid)    - Get database size by OID
pg_table_size(text)        - Get table size (including all indexes and
toast tables) by name/schema.name
pg_table_size(oid)         - Get table size (including all indexes and
toast tables) by OID
pg_size_pretty(int8)     - Pretty print (and round) the byte size
specified (eg, 123456 = 121KB)

This is based on the dbsize contrib module, and previous patches from
Andreas Pflug and Ed L.

The dbsize module should be removed once this is applied, and the
catalog version incremented as I haven't included that in the patch.

Regards, Dave.

Вложения

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

Предыдущее
От: Petr Jelinek
Дата:
Сообщение: per user/database connections limit again
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: COPY FROM performance improvements