Re: new AM, best way to obtain new block at end of index? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: new AM, best way to obtain new block at end of index?
Date
Msg-id BANLkTikXyGJ25dHYsVB5q1mP8SL_BZjdSQ@mail.gmail.com
Whole thread Raw
In response to new AM, best way to obtain new block at end of index?  (Yves Weißig <weissig@rbg.informatik.tu-darmstadt.de>)
List pgsql-hackers
On Thu, Apr 28, 2011 at 8:03 AM, Yves Weißig
<weissig@rbg.informatik.tu-darmstadt.de> wrote:
> Hi list,
>
> currently I am obtaining a new block at the end of an index with:
>
> buf = ReadBuffer(rel, P_NEW);
>
> but it throws:
>
> ERROR:  unexpected data beyond EOF in block 0 of relation base/11874/156053
> HINT:  This has been seen to occur with buggy kernels; consider updating
> your system.
>
> system is up to date:
> $ uname -r
> 2.6.35-28-generic
>
> Is there another way to do it? What could be the source of the problem?

Sounds like a bug either in your code, or in the kernel.  That's the
right way to do it.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: (Better) support for cross compiled external modules
Next
From: Robert Haas
Date:
Subject: Re: SSI non-serializable UPDATE performance