Re: DROP OWNED BY fails to clean out pg_init_privs grants
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: DROP OWNED BY fails to clean out pg_init_privs grants |
| Дата | |
| Msg-id | 1562011.1714450202@sss.pgh.pa.us обсуждение |
| Ответ на | Re: DROP OWNED BY fails to clean out pg_init_privs grants ("David G. Johnston" <david.g.johnston@gmail.com>) |
| Ответы |
Re: DROP OWNED BY fails to clean out pg_init_privs grants
|
| Список | pgsql-hackers |
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> My solution to this was to rely on the fact that the bootstrap superuser is
> assigned OID 10 regardless of its name.
Yeah, I wrote it that way to start with too, but reconsidered
because
(1) I don't like hard-coding numeric OIDs. We can avoid that in C
code but it's harder to do in SQL.
(2) It's not clear to me that this test couldn't be run by a
non-bootstrap superuser. I think "current_user" is actually
the correct thing for the role executing the test.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера