postgres_fdw: Avoid sharing list substructure.

Robert Haas <rhaas@postgresql.org>

Commit: dd077ef832e1ec7f5ba2a706152d22647a3b80f5
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-02-21T08:47:50Z
Releases: 9.6.0
postgres_fdw: Avoid sharing list substructure.

list_concat(list_concat(a, b), c) destructively changes both a and b;
to avoid such perils, copy lists of remote_conds before incorporating
them into larger lists via list_concat().

Ashutosh Bapat, per a report from Etsuro Fujita

Files

PathChange+/−
contrib/postgres_fdw/postgres_fdw.c modified +8 −8