Hi Alexander,
Thanks for the report. With only two entries, the cache of the second
one is used before it is filled.
Your two column case is harmless. With one column, the index can miss
rows until REINDEX.
The attached patch fills the cache earlier and adds a test.
Thanks,
Shihao