pgsql: Switch user ID to the object owner when populating a materialize
В списке pgsql-committers по дате отправления:
| От | Noah Misch |
|---|---|
| Тема | pgsql: Switch user ID to the object owner when populating a materialize |
| Дата | |
| Msg-id | E1Uxlqj-0007rE-S7@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Switch user ID to the object owner when populating a materialized view. This makes superuser-issued REFRESH MATERIALIZED VIEW safe regardless of the object's provenance. REINDEX is an earlier example of this pattern. As a downside, functions called from materialized views must tolerate running in a security-restricted operation. CREATE MATERIALIZED VIEW need not change user ID. Nonetheless, avoid creation of materialized views that will invariably fail REFRESH by making it, too, start a security-restricted operation. Back-patch to 9.3 so materialized views have this from the beginning. Reviewed by Kevin Grittner. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/f3ab5d46960023cf8a9df3751ab9748ce01a46a0 Modified Files -------------- doc/src/sgml/ref/create_materialized_view.sgml | 4 +++- src/backend/commands/createas.c | 30 ++++++++++++++++++++++++ src/backend/commands/matview.c | 19 +++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера