Re: Safety/validity of resetting permissions by updating system tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Safety/validity of resetting permissions by updating system tables
Дата
Msg-id 2525549.1609519448@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Safety/validity of resetting permissions by updating system tables  (Isaac Morland <isaac.morland@gmail.com>)
Ответы Re: Safety/validity of resetting permissions by updating system tables  (Isaac Morland <isaac.morland@gmail.com>)
Re: Safety/validity of resetting permissions by updating system tables  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Isaac Morland <isaac.morland@gmail.com> writes:
> Is it safe and valid to reset to default permissions by doing
> UPDATE pg_namespace/pg_class/pg_type/pg_proc
> SET nspacl/relacl/typacl/proacl = NULL WHERE ... to accomplish this?

Not terribly; the main objection is you'd fail to update pg_shdepend.

> And what do people think, conceptually, of the notion of adding a command
> to do this without resorting to updating system tables directly?

I'm a little skeptical as to the use-case, particularly once you take
ALTER DEFAULT PRIVILEGES into account and try to figure out what that
means.  If it means "apply the current default privileges", you could
easily be "resetting" to a state that never actually prevailed in the
past.

            regards, tom lane



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

Предыдущее
От: Zhihong Yu
Дата:
Сообщение: Re: [PATCH] postgres_fdw connection caching - cause remote sessions linger till the local session exit
Следующее
От: Zhihong Yu
Дата:
Сообщение: Re: poc - possibility to write window function in PL languages