diff options
author | Amit Kapila <akapila@postgresql.org> | 2018-06-27 18:05:24 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2018-06-27 18:05:24 +0530 |
commit | 2e61c50785a0dca6ed30a1a5522457b18bbb5498 (patch) | |
tree | 427c8577520ac33c4e6cc2ca2f72e9c48fa29a3a /src | |
parent | 42121790ca9b27e01fd0471fdac28ec4a381eaee (diff) | |
download | postgresql-2e61c50785a0dca6ed30a1a5522457b18bbb5498.tar.gz postgresql-2e61c50785a0dca6ed30a1a5522457b18bbb5498.zip |
Fix thinko in comments.
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/executor/execReplication.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/executor/execReplication.c b/src/backend/executor/execReplication.c index 41e857e3781..fad6df0aeb3 100644 --- a/src/backend/executor/execReplication.c +++ b/src/backend/executor/execReplication.c @@ -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 */ |