pgsql: Copy the relation name for error reporting in WCOs

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Copy the relation name for error reporting in WCOs
Date: 2015-04-24 13:38:50
Message-ID: E1Yldog-00066A-JV@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Copy the relation name for error reporting in WCOs

In get_row_security_policies(), we need to make a copy of the relation
name when building the WithCheckOptions structure, since
RelationGetRelationName just returns a pointer into the local Relation
structure. The relation name in the WCO structure is only used for
error reporting.

Pointed out by Robert and Christian Ullrich, who noted that the
buildfarm members with -DCLOBBER_CACHE_ALWAYS were failing.

Branch
------
master

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

Modified Files
--------------
src/backend/rewrite/rowsecurity.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2015-04-24 16:01:25 pgsql: Fix misspellings
Previous Message Stephen Frost 2015-04-24 11:24:59 Re: [committers] pgsql: RLS fixes, new hooks, and new test module