Skip site navigation (1) Skip section navigation (2)

Re: FATAL 1: btree

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Chau, Artemis" <artemis(dot)chau(at)intel(dot)com>
Cc: "'pgsql-bugs(at)postgresql(dot)org'" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: FATAL 1: btree
Date: 2000-11-03 16:19:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
"Chau, Artemis" <artemis(dot)chau(at)intel(dot)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

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2000-11-03 16:21:30
Subject: Re: relation modified? (fwd)
Previous:From: Lennert BuytenhekDate: 2000-11-03 15:33:49
Subject: relation modified? (fwd)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group