Re: CREATE/DROP ROLE transactional? GRANT/REVOKE? - Mailing list pgsql-general

From Dominique Devienne
Subject Re: CREATE/DROP ROLE transactional? GRANT/REVOKE?
Date
Msg-id CAFCRh-9LrNimgRg+3e7kcw8yv=PGUwpbGOwzAg4QM21eud0rJw@mail.gmail.com
Whole thread Raw
In response to Re: CREATE/DROP ROLE transactional? GRANT/REVOKE?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: CREATE/DROP ROLE transactional? GRANT/REVOKE?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Mon, Mar 6, 2023 at 4:06 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Dominique Devienne <ddevienne@gmail.com> writes:
> Hi. Perhaps I missed it in the doc (e.g. [1]), but are DDLs around ROLEs
> and GRANTs transactional?

Your expectation is set wrongly.

Thanks for the precision Tom.

Although I'm not sure where you read my expectectation was wrong. But nevermind.
 
DDL commands in Postgres are
transactional unless their man page explicitly says they're not.

OK, didn't know that. Glad to read it.

Could you point to where in the doc this is stated?

It's hard to be sure about something the doc does *not* mention,
when what is *implied* is hard to find, or at a distance. Especially
at least another well known RDBMS differ in that department.
I much prefer the way PostgreSQL handles DDL, still it's not obvious.

My $0.02. Thanks, --DD

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: CREATE/DROP ROLE transactional? GRANT/REVOKE?
Next
From: Tom Lane
Date:
Subject: Re: CREATE/DROP ROLE transactional? GRANT/REVOKE?