CREATE/DROP ROLE transactional? GRANT/REVOKE?

Поиск
Список
Период
Сортировка
От Dominique Devienne
Тема CREATE/DROP ROLE transactional? GRANT/REVOKE?
Дата
Msg-id CAFCRh-8Q0eFxYPtHf=WstE=2cJertKcjP9k-BjBnTnkBr4B+aw@mail.gmail.com
обсуждение исходный текст
Ответы Re: CREATE/DROP ROLE transactional? GRANT/REVOKE?  (Erik Wienhold <ewie@ewie.name>)
Re: CREATE/DROP ROLE transactional? GRANT/REVOKE?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi. Perhaps I missed it in the doc (e.g. [1]), but are DDLs around ROLEs and GRANTs transactional?

Since I'm creating many ROLEs and making many GRANTs, based info I read from PostgreSQL itself (in pg_catalog and elsewhere), should everything be in a single transaction?

FWIW, I come from Oracle (where DDL is non-transactional and an implicit COMMIT), and SQLite (where ROLEs and GRANTs don't apply), thus this perhaps silly question.

I'm already aware that SCHEMAs, TABLEs, etc... are transactionally created.
But given that ROLEs are cluster-wide, and the doc on DDLs say nothing, I prefer to ask.

Thanks, --DD

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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Row Level Security Policy Name in Error Message
Следующее
От: Erik Wienhold
Дата:
Сообщение: Re: CREATE/DROP ROLE transactional? GRANT/REVOKE?