Re: Table Sizes

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: Table Sizes
Дата
Msg-id 20030314202156.GB7004@wallace.ece.rice.edu
обсуждение исходный текст
Ответ на Re: Table Sizes  (Rajesh Kumar Mallah <mallah@trade-india.com>)
Список pgsql-admin
On Mon, Mar 10, 2003 at 03:15:18PM +0530, Rajesh Kumar Mallah wrote:
>
> use contrib/dbsize
>
> 1. select relation_size('schemaname.tablename');
> 2. select database_size('databasename');
>
>
> function 1 does not works with tablename in miXed CaSe.

Sure it does, you just need to put the quotes in the right place:

test=# select relation_size('public.foo');
 relation_size
---------------
          8192
(1 row)

test=# select relation_size('public."FooTwo"');
 relation_size
---------------
          8192
(1 row)

Ross

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

Предыдущее
От: Murthy Kambhampaty
Дата:
Сообщение: Follow-up RE: LVM snapshots
Следующее
От: P G
Дата:
Сообщение: Re: [GENERAL] Is there any procedure to start postgre database server automatically