Re: update db doesnt work

From: John Gray <jgray(at)azuli(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: update db doesnt work
Date: 2002-05-27 16:16:49
Message-ID: 1022516212.1715.128.camel@adzuki
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 2002-05-27 at 16:30, Gregory Seidman wrote:
> Jani Averbach sez:
> } On Mon, 27 May 2002, dirk heitmann wrote:
> } > i have created a table with 1600 comlumns. Now i want
> } > to update some columns with new values:
> } > update db set col1=1 where col2=2;
> } >
> } > this generates the error-message:
> } > heap_formtuple: numberOfAttributes of 1601 > 1600.
> }
> } --8<--
> } Maximum number of columns in a table 1600
> } --8<--
> } http://www2.se.postgresql.org/users-lounge/limitations.html
>
> Which, while accurate, fails to answer the answer the question. A column is
> not being added. A table is not being created. Rows are being updated and
> the system is complaining that there are too many columns. Why?
>

Don't know what the answer is, but it would be interesting to confirm
whether PG thinks there are only 1600 columns. Try:

select relnatts from pg_class where relname='db';

I assume that says 1600? (I was wondering about catalogue changes such
as ADD COLUMN, but that does seem to check MaxHeapAttributeNumber)

Regards

John

--
John Gray
Azuli IT
www.azuli.co.uk

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-05-27 16:17:56 Re: question about 2 versions and libraries
Previous Message Gregory Seidman 2002-05-27 15:30:12 Re: update db doesnt work