Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 505fa08

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /