Re: Table Sizes

Поиск
Список
Период
Сортировка
Искать
От
Ross J. Reedstrom
Тема
Re: Table Sizes
Дата
Msg-id
20030314202156.GB7004@wallace.ece.rice.edu
Ответ на
Re: Table Sizes (Rajesh Kumar Mallah)
Список
Дерево обсуждения
Install psql only? Kris Kiger <kris@musicrebellion.com>
Re: Install psql only? Tomasz Myrta <jasiek@klaster.net>
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
Дата:
FAQ