Skip to content

Commit 389ec25

Browse files
committed
Set proper tuple descriptor in COPY command in case of tuple conversion (#87)
1 parent 26a78b8 commit 389ec25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utility_stmt_hooking.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ PathmanCopyFrom(CopyState cstate, Relation parent_rel,
587587

588588
/* Place tuple in tuple slot --- but slot shouldn't free it */
589589
slot = myslot;
590+
ExecSetSlotDescriptor(slot, RelationGetDescr(child_result_rel->ri_RelationDesc));
590591
ExecStoreTuple(tuple, slot, InvalidBuffer, false);
591592

592593
skip_tuple = false;

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