Re: Removed extra memory allocations from create_list_bounds - Mailing list pgsql-hackers

From Justin Pryzby
Subject Re: Removed extra memory allocations from create_list_bounds
Date
Msg-id 20210705170333.GA21248@telsasoft.com
Whole thread Raw
In response to Re: Removed extra memory allocations from create_list_bounds  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: Removed extra memory allocations from create_list_bounds
List pgsql-hackers
Also, if you're going to remove the initializations here, maybe you'd also
change i and j to C99 "for" declarations like "for (int i=0, j=0; ...)"

-       PartitionListValue **all_values = NULL;
-       ListCell   *cell;
-       int                     i = 0;
-       int                     ndatums = 0;
+       PartitionListValue *all_values;
+       int                     i;
+       int                     j;
+       int                     ndatums;

Same in get_non_null_list_datum_count()

-- 
Justin



pgsql-hackers by date:

Previous
From: Álvaro Herrera
Date:
Subject: Re: Race condition in InvalidateObsoleteReplicationSlots()
Next
From: vignesh C
Date:
Subject: Re: Race condition in InvalidateObsoleteReplicationSlots()