pgsql: Apply SELECT policies in INSERT/UPDATE+RETURNING

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема pgsql: Apply SELECT policies in INSERT/UPDATE+RETURNING
Дата
Msg-id E1Zj4Ma-0003Sw-KV@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Apply SELECT policies in INSERT/UPDATE+RETURNING

Similar to 7d8db3e, given that INSERT+RETURNING requires SELECT rights
on the table, apply the SELECT policies as WCOs to the tuples being
inserted.  Apply the same logic to UPDATE+RETURNING.

Back-patch to 9.5 where RLS was added.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2ca9d5445c35db8956e4abbf1e653373820e8c0a

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


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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: pgsql: Apply SELECT policies in INSERT/UPDATE+RETURNING
Следующее
От: Noah Misch
Дата:
Сообщение: pgsql: Prevent stack overflow in query-type functions.