Search:     Advanced search
Browse by category:
Glossary | Contact Us

Database Knowledge Base / PostgreSQL / What is the maximum size for a row, a table, and a database (PostgreSQL)?

What is the maximum size for a row, a table, and a database (PostgreSQL)?

Add comment
Views: 365
Votes: 2
Comments: 0

These are the limits:

Maximum size for a database ? unlimited (32 TB databases exist)
Maximum size for a table ? 32 TB
Maximum size for a row? 400 GB
Maximum size for a field ? 1 GB
Maximum number of rows in a table ? unlimited
Maximum number of columns in a table ? 250-1600 depending on column types
Maximum number of indexes on a table ? unlimited

Of course, these are not actually unlimited, but limited to available disk space and memory/swap space. Performance may suffer when these values get unusually large.

The maximum table size of 32 TB does not require large file support from the operating system. Large tables are stored as multiple 1 GB files so file system size limits are not important.

The maximum table size, row size, and maximum number of columns can be quadrupled by increasing the default block size to 32k. The maximum table size can also be increased using table partitioning.

One limitation is that indexes can not be created on columns longer than about 2,000 characters. Fortunately, such indexes are rarely needed. Uniqueness is best guaranteed by a function index of an MD5 hash of the long column , and full text indexing allows for searching of words within the column .

Others in this Category
document i am writing a function to return a table in the select query i am using a join and for some columns i want to give alias name but alias name given within" " is not accepting pls give me some suggestions as soon as possible
document What is PostgreSQL? How is it pronounced?
document Who controls PostgreSQL?
document What is the copyright of PostgreSQL?
document What platforms does PostgreSQL support?
document Where can I get PostgreSQL?
document How does PostgreSQL compare to other DBMSs?
document Will PostgreSQL handle recent daylight saving time changes in various countries?
document How we can perform MINUS (Oracle) Or EXCEPT (Maxdb) in MS Access?



RSS