pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Weber <j_weber@tcdi.com>
To: pgsql-admin@postgresql.org
Subject: 1600 column limit per table
Date: Fri, 23 May 2008 15:35:38 -0400
Message-ID: <48371C8A.7000206@tcdi.com> (raw)

I ran into the 1600 column upper bound in a table and I am trying to 
assess if I can work around the limit or if I am in need of a re-design 
of my application.  All the documentation on the site that I have seen 
(CREATE TABLE and postgresql.org/about/) says that 1600 is the limit, I 
looked in htup.h and found:

./src/include/access/htup.h:#define MaxHeapAttributeNumber      1600    
/* 8 * 200 */

with documentation to explain the limitation.  The one ray of hope I 
found was a post from 2001(!) suggesting that the maximum number of 
columns can be increased 4x by increasing one's block size to 32k ( 
http://archives.postgresql.org/pgsql-admin/2001-01/msg00199.php )

One thought I had was to join two 1600 column tables but ran into the 
limit of 1664 tuples.

I'm currently using 8.1.10 -- are there any easy outs(via upgrade, 
configuration, or hacking postgres a little) or should I start drawing 
up a different application design?

Thanks,
Mike



view thread (2+ messages)  latest in thread

Message-ID: <48371C8A.7000206@tcdi.com>
Permalink:  ../48371C8A.7000206@tcdi.com/
Also on:    postgresql.org/message-id/48371C8A.7000206@tcdi.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: j_weber@tcdi.com
  Subject: Re: 1600 column limit per table
  In-Reply-To: <48371C8A.7000206@tcdi.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox