Re: 1600 Column limit..

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 1600 Column limit..
Дата
Msg-id 27171.1037248416@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 1600 Column limit..  ("Williams, Travis L, NPONS" <tlw@att.com>)
Список pgsql-general
"Williams, Travis L, NPONS" <tlw@att.com> writes:
> Is this set in stone.. or is there somewhere you can change this.. and
> will changing it cause upgrade problems in the future..

It is not easy to make a large increase in that limit.  See the comments
in src/include/access/htup.h for some of the reasons why.  You'd also
need a significant increase in block size to be able to do anything
useful.  (For instance, if all your columns are int4, you surely can't
fit more than 2K columns in 8K blocksize.)  Finally, the system is not
very well optimized for large numbers of columns --- even if you could
physically make things fit, there are various places whose runtime is
O(N^2) in the number of columns.

I agree with the nearby comments that say you should consider a database
redesign.  If extremely wide tables were a standard design technique,
we'd not have allowed these limitations to accrue...

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Comparing strings with non-ASCII characters
Следующее
От: アムス
Дата:
Сообщение: Can I install 2nd set of postgresql into the same server?