Database Columns In Select or create statements [duplicate]

為{幸葍}努か 提交于 2020-01-24 00:23:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!