What is the capacity of a table in PostgreSQL?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Oct 31, 2022, 1:03 AM EDT
32 TB
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Oct 31, 2022, 1:56 AM EDT
Maximum Table Size is 32 TB. You can use the following methods to get the size of table:
The pg_relation_size() function is used to get the size of a table.
Syntax: select pg_relation_size('table_name');
To make the result readable, one can use the pg_size_pretty() function. The pg_size_pretty() function takes the result of another function and formats it using bytes, kB, MB, GB or TB as required.
SELECT pg_size_pretty (pg_relation_size('country'));