The size of postgres data folder is 302 GB. But, when I try to view individual table size in psql using \d+
, the size returned for the tables is unrealistic
List of relations
Schema | Name | Type | Owner | Persistence | Access method | Size | Description
--------+--------------------------------------+-------+----------+-------------+---------------+------------+-------------
public | TimeSeriesData1 | table | postgres | permanent | heap | 296 MB |
public | TimeSeriesData2 | table | postgres | permanent | heap | 8192 bytes |
public | TimeSeriesDataPoints | table | postgres | permanent | heap | 8192 bytes |
public | TimeSeriesDataPoints_NEW | table | postgres | permanent | heap | 8192 bytes |
public | TimeSeriesDataPoints_NEW1 | table | postgres | permanent | heap | 8192 bytes |
public | TimeSeriesDataPoints_custom | table | postgres | permanent | heap | 8192 bytes |
public | TimeSeriesDataPoints_custom1 | table | postgres | permanent | heap | 8192 bytes |
public | TimeSeriesDataPoints_jsonb | table | postgres | permanent | heap | 128 kB |
public | TimeSeriesDataPoints_jsonb1 | table | postgres | permanent | heap | 8192 bytes |
public | TimeSeriesDataPoints_jsonb2 | table | postgres | permanent | heap | 8192 bytes |
public | TimeSeriesData3 | table | postgres | permanent | heap | 198 MB |
public | TimeSeriesData4 | table | postgres | permanent | heap | 8192 bytes |
public | TimeSeriesData5 | table | postgres | permanent | heap | 8192 bytes |
public | samplesTimeseries | table | postgres | permanent | heap | 4400 kB |
public | chunk_TimeSeriesData | table | postgres | permanent | heap | 8192 bytes |
TimeSeriesDataPoints table is huge and has more than 1 billion records. But, it is showing as 8192 bytes. I tried reindex
and vacuum
commands. But, unable to get the realistic table sizes. Could you please help