File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -709,15 +709,11 @@ pg_stat_get_backend_subxact(PG_FUNCTION_ARGS)
709
709
{
710
710
#define PG_STAT_GET_SUBXACT_COLS 2
711
711
TupleDesc tupdesc ;
712
- Datum values [PG_STAT_GET_SUBXACT_COLS ];
713
- bool nulls [PG_STAT_GET_SUBXACT_COLS ];
712
+ Datum values [PG_STAT_GET_SUBXACT_COLS ] = { 0 } ;
713
+ bool nulls [PG_STAT_GET_SUBXACT_COLS ] = { 0 } ;
714
714
int32 beid = PG_GETARG_INT32 (0 );
715
715
LocalPgBackendStatus * local_beentry ;
716
716
717
- /* Initialise values and NULL flags arrays */
718
- MemSet (values , 0 , sizeof (values ));
719
- MemSet (nulls , 0 , sizeof (nulls ));
720
-
721
717
/* Initialise attributes information in the tuple descriptor */
722
718
tupdesc = CreateTemplateTupleDesc (PG_STAT_GET_SUBXACT_COLS );
723
719
TupleDescInitEntry (tupdesc , (AttrNumber ) 1 , "subxact_count" ,
You can’t perform that action at this time.
0 commit comments