Remove unused tuple fetch in speculative completion heapam_tuple_complete_speculative() fetched a tuple from the slot only to free it immediately afterwards, without ever using it.
The function only needs slot->tts_tid to complete or abort the speculative insertion, so remove the unnecessary fetch and pfree(). Author: Chao Li <[email protected]> Reviewed-by: Japin Li <[email protected]> Reviewed-by: Xuneng Zhou <[email protected]> Reviewed-by: Surya Poondla <[email protected]> Discussion: https://www.postgresql.org/message-id/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/7258c891d4cabd366e4529484f2ad6e99234db48 Modified Files -------------- src/backend/access/heap/heapam_handler.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
