From 65b71dec2d577e9ef7423773a88fdd075f3eb97f Mon Sep 17 00:00:00 2001 From: David Rowley Date: Tue, 2 Jul 2024 13:41:47 +1200 Subject: 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 --- contrib/pageinspect/gistfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/pageinspect/gistfuncs.c') 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]); } -- cgit v1.2.3