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 1t8OF6-003tJ5-2T for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2024 18:25:27 +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 1t8OF3-00H8MD-Fo for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2024 18:25:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8OF3-00H8Jq-4f for pgsql-general@lists.postgresql.org; Tue, 05 Nov 2024 18:25:25 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8OF1-000LQA-1t for pgsql-general@lists.postgresql.org; Tue, 05 Nov 2024 18:25:24 +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 4A5IPLIi3075666; Tue, 5 Nov 2024 13:25:21 -0500 From: Tom Lane To: Dominique Devienne cc: pgsql-general@lists.postgresql.org Subject: Re: Switching to NOINHERIT user triggers #XX000 error In-reply-to: References: <3070156.1730828552@sss.pgh.pa.us> Comments: In-reply-to Dominique Devienne message dated "Tue, 05 Nov 2024 19:21:35 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3075664.1730831121.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 05 Nov 2024 13:25:21 -0500 Message-ID: <3075665.1730831121@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dominique Devienne writes: > On Tue, Nov 5, 2024 at 6:42 PM Tom Lane wrote: >> This is probably a bug, at least to the extent that we don't like >> XX000 errors to be easily reachable, so please let us know what >> you find out. > Finding where the error is thrown is easy, it's when I'm doing that grant. > But the code creates two larguish schemas before that and several ROLEs, > so it's not easy to share. Really, we need a self-contained example case to do anything about this. Maybe you could anonymize the object names in your test? regards, tom lane