Re: column limit - Mailing list pgsql-general

From Ron Johnson
Subject Re: column limit
Date
Msg-id 45B8D134.5030406@cox.net
Whole thread Raw
In response to column limit  ("Isaac Ben" <ib.zero@gmail.com>)
List pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/25/07 09:34, Isaac Ben wrote:
> Hi,
> I'm trying to create a table with 20,000 columns of type int2, but I
> keep getting the error message that the limit is 1600.  According to
> this message
> http://archives.postgresql.org/pgsql-admin/2001-01/msg00199.php
> it can be increased, but only up to about 6400.  Can anyone tell me
> how to get 20,000 columns?

Why the heck do you need 20 *thousand* columns?

Assuming, though, that you know what you're doing, and the design
isn't horribly botched, then arrays might be what you want.

Normalizing the table might be better, and vertically partitioning
it would be a big performance win if you don't need all 20
*thousand* columns at the same time.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFuNE0S9HxQb37XmcRAoxxAKCLrX0WaekNH8N8ghAzMkhgMmZ43ACg7F0K
0pqcprs/suZ/1xmK73PAdOE=
=WLdL
-----END PGP SIGNATURE-----

pgsql-general by date:

Previous
From: Thorsten Körner
Date:
Subject: Problem with result ordering
Next
From: btober@ct.metrocast.net
Date:
Subject: Re: SQL Newbie Question