PSQL - Select size of tables for both partitioned and normal
问题 Thanks in advance for any help with this, it is highly appreciated. So, basically, I have a Greenplum database and I am wanting to select the table size for the top 10 largest tables. This isn't a problem using the below: select sotaidschemaname schema_name ,sotaidtablename table_name ,pg_size_pretty(sotaidtablesize) table_size from gp_toolkit.gp_size_of_table_and_indexes_disk order by 3 desc limit 10 ; However I have several partitioned tables in my database and these show up with the above