]> granicus.if.org Git - postgresql/commit
postgres_fdw: Avoid sharing list substructure.
authorRobert Haas <rhaas@postgresql.org>
Sun, 21 Feb 2016 08:47:50 +0000 (14:17 +0530)
committerRobert Haas <rhaas@postgresql.org>
Sun, 21 Feb 2016 08:47:50 +0000 (14:17 +0530)
commitdd077ef832e1ec7f5ba2a706152d22647a3b80f5
tree6c883fa2fa2f4928b0128e681cd7ac1da28f7e87
parent902fd1f4e2457f6f04a988920491fffb90028035
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
contrib/postgres_fdw/postgres_fdw.c