Skip to content

Commit 5521e3b

Browse files
author
Amit Kapila
committed
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
1 parent b767b3f commit 5521e3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/executor/execReplication.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ ExecSimpleRelationInsert(EState *estate, TupleTableSlot *slot)
403403
if (rel->rd_att->constr)
404404
ExecConstraints(resultRelInfo, slot, estate);
405405

406-
/* Store the slot into tuple that we can inspect. */
406+
/* Materialize slot into a tuple that we can scribble upon. */
407407
tuple = ExecMaterializeSlot(slot);
408408

409409
/* OK, store the tuple and create index entries for it */
@@ -468,7 +468,7 @@ ExecSimpleRelationUpdate(EState *estate, EPQState *epqstate,
468468
if (rel->rd_att->constr)
469469
ExecConstraints(resultRelInfo, slot, estate);
470470

471-
/* Store the slot into tuple that we can write. */
471+
/* Materialize slot into a tuple that we can scribble upon. */
472472
tuple = ExecMaterializeSlot(slot);
473473

474474
/* OK, update the tuple and index entries for it */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy