pgsql: Fix Var handling for security barrier views

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема pgsql: Fix Var handling for security barrier views
Дата
Msg-id E1XMU3f-0004h3-4n@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
REL9_4_STABLE

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

Modified Files
--------------
src/backend/optimizer/prep/prepsecurity.c |    6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: pgsql: Fix Var handling for security barrier views
Следующее
От: Fujii Masao
Дата:
Сообщение: pgsql: Add header comments to receivelog.h and streamutil.h.