问题
Possible Duplicate:
What is the maximum number of columns in a PostgreSQL select query
I am going to start a new project which requires a large number of tables and columns , using postgres I just want to ask that is number of columns in creating postgres tables are limited , If yes then what would be the MAX value for number of columns in CREATE and SELECT statements?
回答1:
There is an official list of limits on the PostgreSQL "About" page. I quote:
Limit Value
Maximum Database Size Unlimited
Maximum Table Size 32 TB
Maximum Row Size 1.6 TB
Maximum Field Size 1 GB
Maximum Rows per Table Unlimited
Maximum Columns per Table 250 - 1600 depending on column types
Maximum Indexes per Table Unlimited
Quote is still true for Postgres 9.5.
If you get anywhere close to those limits, chances are you are doing something wrong.
来源:https://stackoverflow.com/questions/13639626/database-columns-in-select-or-create-statements