postgresql/contrib/pageinspect
Tom Lane 41b45576d5 Remove useless pfree()s at the ends of various ValuePerCall SRFs.
We don't need to manually clean up allocations in a SRF's
multi_call_memory_ctx, because the SRF_RETURN_DONE infrastructure
takes care of that (and also ensures that it will happen even if the
function never gets a final call, which simple manual cleanup cannot
do).

Hence, the code removed by this patch is a waste of code and cycles.
Worse, it gives the impression that cleaning up manually is a thing,
which can lead to more serious errors such as those fixed in
commits 085b6b667 and b4570d33a.  So we should get rid of it.

These are not quite actual bugs though, so I couldn't muster the
enthusiasm to back-patch.  Fix in HEAD only.

Justin Pryzby

Discussion: https://postgr.es/m/20200308173103.GC1357@telsasoft.com
2020-03-16 21:36:53 -04:00
..
expected
sql
.gitignore
brinfuncs.c
btreefuncs.c Remove useless pfree()s at the ends of various ValuePerCall SRFs. 2020-03-16 21:36:53 -04:00
fsmfuncs.c
ginfuncs.c Remove useless pfree()s at the ends of various ValuePerCall SRFs. 2020-03-16 21:36:53 -04:00
hashfuncs.c Remove useless pfree()s at the ends of various ValuePerCall SRFs. 2020-03-16 21:36:53 -04:00
heapfuncs.c
Makefile
pageinspect--1.0--1.1.sql
pageinspect--1.1--1.2.sql
pageinspect--1.2--1.3.sql
pageinspect--1.3--1.4.sql
pageinspect--1.4--1.5.sql
pageinspect--1.5--1.6.sql
pageinspect--1.5.sql
pageinspect--1.6--1.7.sql
pageinspect--1.7--1.8.sql
pageinspect.control
pageinspect.h
rawpage.c