We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf09437 commit c5b0582Copy full SHA for c5b0582
src/backend/utils/adt/pgstatfuncs.c
@@ -709,15 +709,11 @@ pg_stat_get_backend_subxact(PG_FUNCTION_ARGS)
709
{
710
#define PG_STAT_GET_SUBXACT_COLS 2
711
TupleDesc tupdesc;
712
- Datum values[PG_STAT_GET_SUBXACT_COLS];
713
- bool nulls[PG_STAT_GET_SUBXACT_COLS];
+ Datum values[PG_STAT_GET_SUBXACT_COLS] = {0};
+ bool nulls[PG_STAT_GET_SUBXACT_COLS] = {0};
714
int32 beid = PG_GETARG_INT32(0);
715
LocalPgBackendStatus *local_beentry;
716
717
- /* Initialise values and NULL flags arrays */
718
- MemSet(values, 0, sizeof(values));
719
- MemSet(nulls, 0, sizeof(nulls));
720
-
721
/* Initialise attributes information in the tuple descriptor */
722
tupdesc = CreateTemplateTupleDesc(PG_STAT_GET_SUBXACT_COLS);
723
TupleDescInitEntry(tupdesc, (AttrNumber) 1, "subxact_count",
0 commit comments