Skip to content

Commit 505fa08

Browse files
committed
Merge branch 'next' of github.com:postgrespro/pg_pathman into next
2 parents 59ce652 + 01dd49b commit 505fa08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utility_stmt_hooking.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,9 @@ PathmanCopyFrom(CopyState cstate, Relation parent_rel,
630630
/* Handle foreign tables */
631631
else
632632
{
633-
child_result_rel->ri_FdwRoutine->ForeignNextCopyFrom(estate,
634-
child_rri,
635-
cstate);
633+
child_rri->ri_FdwRoutine->ForeignNextCopyFrom(estate,
634+
child_rri,
635+
cstate);
636636
}
637637
#endif
638638

@@ -706,7 +706,7 @@ prepare_rri_for_copy(ResultRelInfoHolder *rri_holder,
706706
FdwCopyFromIsSupported(fdw_routine))
707707
{
708708
CopyState cstate = (CopyState) rps_storage->init_rri_holder_cb_arg;
709-
ResultRelInfo *parent_rri = rps_storage->saved_rel_info;
709+
ResultRelInfo *parent_rri = rps_storage->base_rri;
710710
EState *estate = rps_storage->estate;
711711

712712
fdw_routine->BeginForeignCopyFrom(estate, rri, cstate, parent_rri);

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