Fix Var handling for security barrier views
Fix Var handling for security barrier views

In some cases, not all Vars were being correctly marked as having been
modified for updatable security barrier views, which resulted in invalid
plans (eg: when security barrier views were created over top of
inheiritance structures).

In passing, be sure to update both varattno and varonattno, as _equalVar
won't consider the Vars identical otherwise.  This isn't known to cause
any issues with updatable security barrier views, but was noticed as
missing while working on RLS and makes sense to get fixed.

Back-patch to 9.4 where updatable security barrier views were
introduced.

greenplum-db/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,lisakowen/gpdb,xinzweb/gpdb,lisakowen/gpdb,oberstet/postgres-xl,50wu/gpdb,jmcatamney/gpdb,yazun/postgres-xl,50wu/gpdb,50wu/gpdb,Postgres-XL/Postgres-XL,zeroae/postgres-xl,Postgres-XL/Postgres-XL,ashwinstar/gpdb,yazun/postgres-xl,adam8157/gpdb,xinzweb/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,yazun/postgres-xl,ovr/postgres-xl,adam8157/gpdb,ovr/postgres-xl,lisakowen/gpdb,zeroae/postgres-xl,50wu/gpdb,greenplum-db/gpdb,xinzweb/gpdb,xinzweb/gpdb,zeroae/postgres-xl,xinzweb/gpdb,adam8157/gpdb,pavanvd/postgres-xl,Postgres-XL/Postgres-XL,techdragon/Postgres-XL,ashwinstar/gpdb,ashwinstar/gpdb,lisakowen/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,techdragon/Postgres-XL,jmcatamney/gpdb,lisakowen/gpdb,adam8157/gpdb,xinzweb/gpdb,adam8157/gpdb,xinzweb/gpdb,jmcatamney/gpdb,zeroae/postgres-xl,jmcatamney/gpdb,50wu/gpdb,lisakowen/gpdb,oberstet/postgres-xl,Postgres-XL/Postgres-XL,jmcatamney/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,pavanvd/postgres-xl,techdragon/Postgres-XL,xinzweb/gpdb,oberstet/postgres-xl,50wu/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,ovr/postgres-xl,zeroae/postgres-xl,lisakowen/gpdb,greenplum-db/gpdb,adam8157/gpdb,pavanvd/postgres-xl,yazun/postgres-xl,lisakowen/gpdb,adam8157/gpdb,yazun/postgres-xl,greenplum-db/gpdb,50wu/gpdb,jmcatamney/gpdb,ovr/postgres-xl,greenplum-db/gpdb,50wu/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,adam8157/gpdb,Postgres-XL/Postgres-XL,greenplum-db/gpdb,ashwinstar/gpdb