Fix outdated comments regarding TupleTableSlots
authorDavid Rowley <drowley@postgresql.org>
Thu, 30 Mar 2023 03:37:03 +0000 (16:37 +1300)
committerDavid Rowley <drowley@postgresql.org>
Thu, 30 Mar 2023 03:37:03 +0000 (16:37 +1300)
commit902ecd3bd4e733d273e69fd420df6fab4ffbe79b
tree6f959870c9296e9cdec34e4891ec5afecf084e71
parent7f5b19817eaf38e70ad1153db4e644ee9456853e
Fix outdated comments regarding TupleTableSlots

The tts_flag is named TTS_FLAG_SHOULDFREE, so use that instead of
TTS_SHOULDFREE, which is the name of the macro that checks for that flag.

Additionally, 4da597edf got rid of the TupleTableSlot.tts_tuple field but
forgot to update a comment which referenced that field.  Fix that.

Reported-by: Zhen Mingyang <zhenmingyang@yeah.net>
Reported-by: Richard Guo <guofenglinux@gmail.com>
Discussion: https://postgr.es/m/1a96696c.9d3.187193989c3.Coremail.zhenmingyang@yeah.net
src/backend/executor/execTuples.c
src/include/executor/tuptable.h