diff options
author | David Rowley <drowley@postgresql.org> | 2024-07-02 13:41:47 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2024-07-02 13:41:47 +1200 |
commit | 65b71dec2d577e9ef7423773a88fdd075f3eb97f (patch) | |
tree | 29eb2dbbbb577b2c2ad64b4a21fdc0f660aa5347 /contrib/pageinspect/gistfuncs.c | |
parent | 0c1aca461481216ff5a0e65538c4880bcf346433 (diff) | |
download | postgresql-65b71dec2d577e9ef7423773a88fdd075f3eb97f.tar.gz postgresql-65b71dec2d577e9ef7423773a88fdd075f3eb97f.zip |
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
Diffstat (limited to 'contrib/pageinspect/gistfuncs.c')
-rw-r--r-- | contrib/pageinspect/gistfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pageinspect/gistfuncs.c b/contrib/pageinspect/gistfuncs.c index b38f1d32f76..1cc3b8c9e90 100644 --- a/contrib/pageinspect/gistfuncs.c +++ b/contrib/pageinspect/gistfuncs.c @@ -309,7 +309,7 @@ gist_page_items(PG_FUNCTION_ARGS) bool typisvarlena; Oid typoid; - typoid = tupdesc->attrs[i].atttypid; + typoid = TupleDescAttr(tupdesc, i)->atttypid; getTypeOutputInfo(typoid, &foutoid, &typisvarlena); value = OidOutputFunctionCall(foutoid, itup_values[i]); } |