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

Re: crash on 8.2 and cvshead - failed to add item to the

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Joe Conway <mail(at)joeconway(dot)com>, "Hackers (PostgreSQL)" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: crash on 8.2 and cvshead - failed to add item to the
Date: 2007-01-31 10:46:37
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Tom Lane wrote:
> Are you still concerned about the PageGetFreeSpace issue?

Not anymore.

The failure case I had in mind was not being able to find any valid 
split points when a page is full of max-sized index tuples. On a closer 
look, that doesn't seem to be a problem. Even though checksplitloc would 
incorrectly consider the split (HIKEY+item)-(HIKEY+item+item) as 
invalid, the split (HIKEY+item+item)-(HIKEY+item) is just as good. 
Similarly on the rightmost page, even if (HIKEY+item)-(item+item+item) 
is incorrectly considered as invalid, (HIKEY+item+item)-(item+item) is fine.

There also seems to always be some slack space because of alignments.

   Heikki Linnakangas

In response to

pgsql-hackers by date

Next:From: Pavan DeolaseeDate: 2007-01-31 11:19:36
Subject: Re: stack usage in toast_insert_or_update()
Previous:From: Magnus HaganderDate: 2007-01-31 09:58:59
Subject: Re: [BUGS] Missing error message on missing ssl-key-files

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