Isn't that what you get after a btree index has gotten corrupted?
(Probably by trying to insert a too-large index entry?)
I thought we'd put in a defense against oversize index entries,
but maybe it hasn't made it to the REL6_5 series...
regards, tom lane