Re: FATAL 1: btree

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: FATAL 1: btree
Дата
Msg-id 6800.973268395@sss.pgh.pa.us
обсуждение исходный текст
Ответ на FATAL 1: btree  ("Chau, Artemis" <artemis.chau@intel.com>)
Список pgsql-bugs
"Chau, Artemis" <artemis.chau@intel.com> writes:
>> I wrote a function, the error I got is
>> FATAL 1:  btree: cannot split if start (2) >= maxoff (1).

You are running into limits on the size of a function body.  You can't
safely make the body longer than about 2700 bytes in 6.5.*.  The limit
is about 8K in 7.0, and 7.1 will have effectively no limit.

>> I am using postgressql 6.5.2.  (Please don't tell me to upgrade to 7.0
>> because we can't yet).

You really should upgrade ;-).  In the meantime, your only alternative
is to write shorter functions.  Try splitting the work into multiple
functions...

            regards, tom lane

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

Предыдущее
От: Lennert Buytenhek
Дата:
Сообщение: relation modified? (fwd)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: relation modified? (fwd)