Re: table size and storage location - Mailing list pgsql-general

From chuckee
Subject Re: table size and storage location
Date
Msg-id 16249922.post@talk.nabble.com
Whole thread Raw
In response to Re: table size and storage location  (paul rivers <rivers.paul@gmail.com>)
Responses Re: table size and storage location  ("Andrej Ricnik-Bay" <andrej.groups@gmail.com>)
Re: table size and storage location  (paul rivers <rivers.paul@gmail.com>)
List pgsql-general

paul rivers-2 wrote:
>
> chuckee wrote:
>> 1) how do I find out the size, in MB, of a particular table (called
>> 'capture' in this case).
>> I tried entering the SQL query SELECT (pg_tablespace_size('capture'));
>> The result was the following:
>> ERROR:  tablespace "capture" does not exist
>>
>
> You're looking for pg_relation_size('capture') or
> pg_total_relation_size('capture'). A tablespace is a named location for
> creating objects.
>
>

Thanks but I still get the error 'ERROR:  relation "capture" does not exist'
when trying these two alternative functions you mention above. There is
definitely a table called 'capture' in my database!
--
View this message in context: http://www.nabble.com/table-size-and-storage-location-tp16230697p16249922.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: PostgreSQL Replication with read-only access to standby DB
Next
From: Anton Andreev
Date:
Subject: How to "use" database?