pgsql: Fix erroneous Valgrind markings in AllocSetRealloc.

2023-02-21 Thread Tom Lane
Fix erroneous Valgrind markings in AllocSetRealloc. If asked to decrease the size of a large (>8K) palloc chunk, AllocSetRealloc could improperly change the Valgrind state of memory beyond the new end of the chunk: it would mark data UNDEFINED as far as the old end of the chunk after having done t

pgsql: Fix erroneous Valgrind markings in AllocSetRealloc.

2023-02-21 Thread Tom Lane
Fix erroneous Valgrind markings in AllocSetRealloc. If asked to decrease the size of a large (>8K) palloc chunk, AllocSetRealloc could improperly change the Valgrind state of memory beyond the new end of the chunk: it would mark data UNDEFINED as far as the old end of the chunk after having done t

pgsql: Fix erroneous Valgrind markings in AllocSetRealloc.

2023-02-21 Thread Tom Lane
Fix erroneous Valgrind markings in AllocSetRealloc. If asked to decrease the size of a large (>8K) palloc chunk, AllocSetRealloc could improperly change the Valgrind state of memory beyond the new end of the chunk: it would mark data UNDEFINED as far as the old end of the chunk after having done t

pgsql: Fix erroneous Valgrind markings in AllocSetRealloc.

2023-02-21 Thread Tom Lane
Fix erroneous Valgrind markings in AllocSetRealloc. If asked to decrease the size of a large (>8K) palloc chunk, AllocSetRealloc could improperly change the Valgrind state of memory beyond the new end of the chunk: it would mark data UNDEFINED as far as the old end of the chunk after having done t

pgsql: Fix erroneous Valgrind markings in AllocSetRealloc.

2023-02-21 Thread Tom Lane
Fix erroneous Valgrind markings in AllocSetRealloc. If asked to decrease the size of a large (>8K) palloc chunk, AllocSetRealloc could improperly change the Valgrind state of memory beyond the new end of the chunk: it would mark data UNDEFINED as far as the old end of the chunk after having done t

pgsql: Fix erroneous Valgrind markings in AllocSetRealloc.

2023-02-21 Thread Tom Lane
Fix erroneous Valgrind markings in AllocSetRealloc. If asked to decrease the size of a large (>8K) palloc chunk, AllocSetRealloc could improperly change the Valgrind state of memory beyond the new end of the chunk: it would mark data UNDEFINED as far as the old end of the chunk after having done t