]> granicus.if.org Git - postgresql/commit
Copy the relation name for error reporting in WCOs
authorStephen Frost <sfrost@snowman.net>
Fri, 24 Apr 2015 13:38:10 +0000 (09:38 -0400)
committerStephen Frost <sfrost@snowman.net>
Fri, 24 Apr 2015 13:38:10 +0000 (09:38 -0400)
commitcb087ec03bbb1d52845a4de83a6bf634dac2639f
tree610877111dff85700037924a3a5fdd554dfd3ed5
parent62420ae7d6675453a48e408b62030b6f0780e878
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.
src/backend/rewrite/rowsecurity.c