Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uMwkG-007sjX-8T for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jun 2025 22:38:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uMwkD-000IX4-Hy for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jun 2025 22:38:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uMwkD-000IWw-8M for pgsql-hackers@lists.postgresql.org; Wed, 04 Jun 2025 22:38:01 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uMwkC-000Fbc-08 for pgsql-hackers@lists.postgresql.org; Wed, 04 Jun 2025 22:38:01 +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 554Mbvs41075845; Wed, 4 Jun 2025 18:37:57 -0400 From: Tom Lane To: "David G. Johnston" cc: Noah Misch , Bruce Momjian , PostgreSQL-development Subject: Re: PG 18 release notes draft committed In-reply-to: References: <20250603172123.5f.nmisch@google.com> <1071973.1749075038@sss.pgh.pa.us> <20250604221710.2c.nmisch@google.com> Comments: In-reply-to "David G. Johnston" message dated "Wed, 04 Jun 2025 15:25:54 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1075843.1749076677.1@sss.pgh.pa.us> Date: Wed, 04 Jun 2025 18:37:57 -0400 Message-ID: <1075844.1749076677@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > Is this covering the case of executing at the end of an outer SQL command > (thus not deferred) that contains volatile DML functions that temporarily > change current_user within the function? Not quite. I think that a non-deferred AFTER trigger would ordinarily run as the same user that was active when we queued the event, earlier in the same statement --- but it's possible that some function that runs in between would change the active role in a non-temporary way. Doing that will now have different effects than it did before. regards, tom lane