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--=4MzsyoDXM1HRWs2AcrXc6CiWA0+HhRFpY5kpJrd65Q@mail.gmail.com
Whole thread Raw
In response to Re: CREATE/DROP ROLE transactional? GRANT/REVOKE?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Mon, Mar 6, 2023 at 4:31 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Dominique Devienne <ddevienne@gmail.com> writes:
> On Mon, Mar 6, 2023 at 4:06 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> DDL commands in Postgres are
>> transactional unless their man page explicitly says they're not.

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

For example, for CREATE DATABASE the first "Note" para in [1] is

    CREATE DATABASE cannot be executed inside a transaction block.

I don't think we are entirely consistent about whether this is
mentioned in "Description" or "Notes", but it's there somewhere.

Yes, I noticed that, once I read Erik's email (went to GMail's SPAM folder...).

Still, my little brain didn't leap to the conclusion that other DDLs were implicitly transactional,
because missing of a note another DDL's doc has. All I'm saying it's not as obvious as you
experienced PostgreSQL folks seems to think it is. FWIW. Thanks again, --DD

pgsql-general by date:

Previous
From: Dominique Devienne
Date:
Subject: Re: CREATE/DROP ROLE transactional? GRANT/REVOKE?
Next
From: Brad White
Date:
Subject: garbage data back