It seems a bit brute-force. Why didn't you use SearchSysCache(INDEXRELID)the same as RelationInitIndexAccessInfo does?
And what's the point ofthe extra tuple copy step, instead of assigning the values into the cache entry immediately?
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных