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 01dd49b

Browse files
Merge pull request #172 from arssher/fix_shardman_copy_from_11
Fix shardman's COPY FROM as it got a bit rotten in the 'next' branch
2 parents 51aa9d2 + a69b122 commit 01dd49b

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 によって変換されたページ (->オリジナル) /