Thread: pgsql: Use TupleDescAttr macro consistently

pgsql: Use TupleDescAttr macro consistently

From
David Rowley
Date:
Use TupleDescAttr macro consistently

A few places were directly accessing the attrs[] array. This goes
against the standards set by 2cd708452. Fix that.

Discussion: https://postgr.es/m/CAApHDvrBztXP3yx=NKNmo3xwFAFhEdyPnvrDg3=M0RhDs+4vYw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/65b71dec2d577e9ef7423773a88fdd075f3eb97f

Modified Files
--------------
contrib/pageinspect/gistfuncs.c          |  2 +-
src/backend/catalog/heap.c               | 11 ++++++-----
src/backend/commands/prepare.c           |  2 +-
src/backend/executor/nodeIndexonlyscan.c |  4 ++--
src/backend/executor/nodeMemoize.c       |  8 ++++----
src/backend/optimizer/util/plancat.c     |  2 +-
6 files changed, 15 insertions(+), 14 deletions(-)