diff options
author | Amit Kapila <akapila@postgresql.org> | 2018-06-27 18:29:42 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2018-06-27 18:29:42 +0530 |
commit | 5521e3bd5ffc57887f76f280ed8c88b5990752f8 (patch) | |
tree | 246eae0e383bd5bf99b8d25054bf6bf1e680e8db /src/backend/executor | |
parent | b767b3f2e5b7aadb53c67cb2a2d7ded8e0825193 (diff) | |
download | postgresql-5521e3bd5ffc57887f76f280ed8c88b5990752f8.tar.gz postgresql-5521e3bd5ffc57887f76f280ed8c88b5990752f8.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/backend/executor')
-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 6d6a3a75502..50d379489bc 100644 --- a/src/backend/executor/execReplication.c +++ b/src/backend/executor/execReplication.c @@ -403,7 +403,7 @@ ExecSimpleRelationInsert(EState *estate, TupleTableSlot *slot) if (rel->rd_att->constr) ExecConstraints(resultRelInfo, slot, estate); - /* 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 */ @@ -468,7 +468,7 @@ ExecSimpleRelationUpdate(EState *estate, EPQState *epqstate, if (rel->rd_att->constr) ExecConstraints(resultRelInfo, slot, estate); - /* 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 */ |