Teodor Sigaev <teodor(at)stack(dot)net> writes:
> The point was that in gist_tuple_replacekey (called from
> gistPageAddItem) key may be replaced by null value, but flag
> itup->t_info & INDEX_NULL_MASK is not set.
Ah. That's certainly a bug.
regards, tom lane