Re: About Maximum number of columns

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: About Maximum number of columns
Дата
Msg-id 20051222161017.GY72143@pervasive.com
обсуждение исходный текст
Ответ на About Maximum number of columns  (zhaoxin <zhaox@necas.nec.com.cn>)
Ответы Re: About Maximum number of columns  (Scott Marlowe <smarlowe@g2switchworks.com>)
Список pgsql-general
On Thu, Dec 22, 2005 at 07:22:12PM +0800, zhaoxin wrote:
> Hi All.
>
> I have a question about the Maximum number of columns in a table ?
>
> In FAQ for PostgreSQL,I can find this description :
>   Maximum number of columns in a table?
>           250-1600 depending on column types
> But , I want to know what type is 1600 limit , and what type is 250
> limit . it is important for me  , thanks .

I'm pretty sure I've read the reason for the limit somewhere in the
source code, but I can't remember where. It's probably somewhere in
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/. I know
that the exact upper limit isn't actually 1600 fields, it's more like
1643 or something.

But, as others have said, just try creating your table and see what
happens. If it fails, you might be able to get it to work by increasing
the block size.

And as others have said, this is almost certainly a horrible schema that
needs to be fixed, badly. Luckily, thanks to views and rules, you could
probably fix it without actually changing any of the client code.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Indices for select count(*)?
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Toolkit for creating editable grid