Revise BuildIndexValueDescription to simplify it

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 1c04d4beea8a7f0f5fb667512025aada14c5be67
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2018-07-17T00:20:15Z
Releases: 12.0
Revise BuildIndexValueDescription to simplify it

Getting a pg_index tuple from syscache when the open index relation is
available is pointless -- just use the one from relcache.

Noticed while reviewing code for cb9db2ab0674.

No backpatch.

Files

PathChange+/−
src/backend/access/index/genam.c modified +2 −16