Re: ERROR: tables can have at most 1600 columns

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ERROR: tables can have at most 1600 columns
Дата
Msg-id 14554.1088376524@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ERROR: tables can have at most 1600 columns  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Ответы Re: ERROR: tables can have at most 1600 columns  (Jaime Casanova <systemguards@yahoo.com>)
Re: ERROR: tables can have at most 1600 columns  (Ron St-Pierre <rstpierre@syscor.com>)
Список pgsql-general
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> On Sun, Jun 27, 2004 at 11:11:32AM -0700, Ron St-Pierre wrote:
>> STATEMENT:  ALTER TABLE victoria.eodData DROP COLUMN tickDate;
>> ERROR:  tables can have at most 1600 columns
>> STATEMENT:  ALTER TABLE victoria.eodData ADD COLUMN tickerID INTEGER;
>> ERROR:  tables can have at most 1600 columns

> Have you done the DROP COLUMN/ADD COLUMN cycle to this table more than,
> say, 1500 times?  Because a dropped column is actually only hidden from
> the user, but it's still present to the system and it will still affect
> the 1600 limit.

That is a good theory, but it doesn't quite explain why Ron's getting
the error from DROP COLUMN --- AFAICS, the places that would issue such
an error won't get called in that path.

I tried to reproduce this and could not: after 1600 cycles of adding and
dropping a column, I did indeed start to get "tables can have at most
1600 columns" from ADD, but DROP continued to behave normally.

Ron, are you sure these errors were coming from the DROPs and not only
the ADDs?  Can you exhibit a test case?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump out of shared memory
Следующее
От: Tom Lane
Дата:
Сообщение: Re: indexing lat lon