Skip to content

Commit 2e61c50

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 4212179 commit 2e61c50

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
@@ -417,7 +417,7 @@ ExecSimpleRelationInsert(EState *estate, TupleTableSlot *slot)
417417
if (resultRelInfo->ri_PartitionCheck)
418418
ExecPartitionCheck(resultRelInfo, slot, estate, true);
419419

420-
/* Store the slot into tuple that we can inspect. */
420+
/* Materialize slot into a tuple that we can scribble upon. */
421421
tuple = ExecMaterializeSlot(slot);
422422

423423
/* OK, store the tuple and create index entries for it */
@@ -484,7 +484,7 @@ ExecSimpleRelationUpdate(EState *estate, EPQState *epqstate,
484484
if (resultRelInfo->ri_PartitionCheck)
485485
ExecPartitionCheck(resultRelInfo, slot, estate, true);
486486

487-
/* Store the slot into tuple that we can write. */
487+
/* Materialize slot into a tuple that we can scribble upon. */
488488
tuple = ExecMaterializeSlot(slot);
489489

490490
/* 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