pgsql: postgres_fdw: Avoid sharing list substructure.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: postgres_fdw: Avoid sharing list substructure.
Date: 2016-02-21 08:51:12
Message-ID: E1aXPjU-0005eO-W5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/dd077ef832e1ec7f5ba2a706152d22647a3b80f5

Modified Files
--------------
contrib/postgres_fdw/postgres_fdw.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-02-21 10:17:55 pgsql: Cosmetic improvements to group locking.
Previous Message Tatsuo Ishii 2016-02-21 00:17:28 pgsql: Fix wording in the Tutorial document.