Andreas Seltenreich <seltenreich(at)gmx(dot)de> writes:
> Here's a recipe for triggering the former:
> create table t(c text);
> create index on t using spgist(c);
> insert into t select '' from generate_series(1,10000);
> set enable_seqscan to off; select count(1) from t;
Ah-hah. Thanks for the test case.
> I still think it's just the assertions being too strict.
Yes, now I agree. Fix pushed.
regards, tom lane