Fix thinko in comments.
authorAmit Kapila <akapila@postgresql.org>
Wed, 27 Jun 2018 12:35:24 +0000 (18:05 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 27 Jun 2018 12:35:24 +0000 (18:05 +0530)
A slot can not be stored in a tuple but it's vice versa.

Reported-by: Ashutosh Bapat
Author: Ashutosh Bapat
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CAFjFpRcHhNhXdegyJv3KKDWrwO1_NB_KYZM_ZSDeMOZaL1A5jQ@mail.gmail.com

src/backend/executor/execReplication.c

index 41e857e3781c228a474638c980fe5a26827a8de1..fad6df0aeb356b0ecc6aaa00b1e6df0eb9444ce3 100644 (file)
@@ -417,7 +417,7 @@ ExecSimpleRelationInsert(EState *estate, TupleTableSlot *slot)
        if (resultRelInfo->ri_PartitionCheck)
            ExecPartitionCheck(resultRelInfo, slot, estate, true);
 
-       /* Store the slot into tuple that we can inspect. */
+       /* Materialize slot into a tuple that we can scribble upon. */
        tuple = ExecMaterializeSlot(slot);
 
        /* OK, store the tuple and create index entries for it */
@@ -484,7 +484,7 @@ ExecSimpleRelationUpdate(EState *estate, EPQState *epqstate,
        if (resultRelInfo->ri_PartitionCheck)
            ExecPartitionCheck(resultRelInfo, slot, estate, true);
 
-       /* Store the slot into tuple that we can write. */
+       /* Materialize slot into a tuple that we can scribble upon. */
        tuple = ExecMaterializeSlot(slot);
 
        /* OK, update the tuple and index entries for it */