Mop-up for commit e035863c9.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Aug 2025 16:11:33 +0000 (12:11 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Aug 2025 16:11:33 +0000 (12:11 -0400)
Neither Peter nor I had tried this with USE_VALGRIND ...

Per buildfarm member skink.

src/backend/access/common/printtup.c

index 830a3d883aa2e77ef56fb3fc4f2a2b57cd4e97ed..6d3045e2332113014713f4f4dcb0493fb20fe243 100644 (file)
@@ -350,7 +350,7 @@ printtup(TupleTableSlot *slot, DestReceiver *self)
         */
        if (thisState->typisvarlena)
            VALGRIND_CHECK_MEM_IS_DEFINED(DatumGetPointer(attr),
-                                         VARSIZE_ANY(attr));
+                                         VARSIZE_ANY(DatumGetPointer(attr)));
 
        if (thisState->format == 0)
        {