Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZCPr-0003SA-Ec for pgsql-general@arkaria.postgresql.org; Mon, 06 Mar 2023 15:06:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pZCPq-0001ea-0W for pgsql-general@arkaria.postgresql.org; Mon, 06 Mar 2023 15:06:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZCPp-0001eQ-L8 for pgsql-general@lists.postgresql.org; Mon, 06 Mar 2023 15:06:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZCPn-00012X-28 for pgsql-general@lists.postgresql.org; Mon, 06 Mar 2023 15:06:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 326F6CDc3351045; Mon, 6 Mar 2023 10:06:12 -0500 From: Tom Lane To: Dominique Devienne cc: pgsql-general@lists.postgresql.org Subject: Re: CREATE/DROP ROLE transactional? GRANT/REVOKE? In-reply-to: References: Comments: In-reply-to Dominique Devienne message dated "Mon, 06 Mar 2023 14:19:04 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3351043.1678115172.1@sss.pgh.pa.us> Date: Mon, 06 Mar 2023 10:06:12 -0500 Message-ID: <3351044.1678115172@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dominique Devienne 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. DDL commands in Postgres are transactional unless their man page explicitly says they're not. regards, tom lane