diff options
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
-rw-r--r-- | contrib/postgres_fdw/postgres_fdw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index db62caf6d9f..25e219dd82c 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -3711,9 +3711,7 @@ store_returning_result(PgFdwModifyState *fmstate, * The returning slot will not necessarily be suitable to store * heaptuples directly, so allow for conversion. */ - ExecForceStoreHeapTuple(newtup, slot); - ExecMaterializeSlot(slot); - pfree(newtup); + ExecForceStoreHeapTuple(newtup, slot, true); } PG_CATCH(); { |