aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorDavid Rowley <drowley@postgresql.org>2023-03-30 16:37:03 +1300
committerDavid Rowley <drowley@postgresql.org>2023-03-30 16:37:03 +1300
commit902ecd3bd4e733d273e69fd420df6fab4ffbe79b (patch)
tree6f959870c9296e9cdec34e4891ec5afecf084e71 /src/backend/executor
parent7f5b19817eaf38e70ad1153db4e644ee9456853e (diff)
downloadpostgresql-902ecd3bd4e733d273e69fd420df6fab4ffbe79b.tar.gz
postgresql-902ecd3bd4e733d273e69fd420df6fab4ffbe79b.zip
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
Diffstat (limited to 'src/backend/executor')
-rw-r--r--src/backend/executor/execTuples.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/executor/execTuples.c b/src/backend/executor/execTuples.c
index 9f18d460818..fda20ec3183 100644
--- a/src/backend/executor/execTuples.c
+++ b/src/backend/executor/execTuples.c
@@ -385,8 +385,8 @@ tts_heap_materialize(TupleTableSlot *slot)
{
/*
* The tuple contained in this slot is not allocated in the memory
- * context of the given slot (else it would have TTS_SHOULDFREE set).
- * Copy the tuple into the given slot's memory context.
+ * context of the given slot (else it would have TTS_FLAG_SHOULDFREE
+ * set). Copy the tuple into the given slot's memory context.
*/
hslot->tuple = heap_copytuple(hslot->tuple);
}
@@ -554,8 +554,9 @@ tts_minimal_materialize(TupleTableSlot *slot)
{
/*
* The minimal tuple contained in this slot is not allocated in the
- * memory context of the given slot (else it would have TTS_SHOULDFREE
- * set). Copy the minimal tuple into the given slot's memory context.
+ * memory context of the given slot (else it would have
+ * TTS_FLAG_SHOULDFREE set). Copy the minimal tuple into the given
+ * slot's memory context.
*/
mslot->mintuple = heap_copy_minimal_tuple(mslot->mintuple);
}