Re: BUG #16006: Update queries fail on a table having any policy with a function that takes a whole-row var as arg

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: vinay.s.banakar@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2019-09-12T22:28:25Z
Lists: pgsql-bugs
Andres Freund <andres@anarazel.de> writes:
> I don't quite understand how this "visibly" broke between 9.5.15 and
> 9.5.19 as the op reports? Haven't dug into it yet though.

I'm confused about that too, since in my hands the submitted test
case fails in both of those branches.  I've also been able to
adapt it to fail in v10/v11.  Will commit in a moment.

			regards, tom lane



Commits

  1. Fix usage of whole-row variables in WCO and RLS policy expressions.