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 1sbPKJ-00GOb7-Se for pgsql-bugs@arkaria.postgresql.org; Tue, 06 Aug 2024 18:54:31 +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 1sbPKH-0021RU-LZ for pgsql-bugs@arkaria.postgresql.org; Tue, 06 Aug 2024 18:54:29 +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 1sbPKH-0021RM-CX for pgsql-bugs@lists.postgresql.org; Tue, 06 Aug 2024 18:54:29 +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.94.2) (envelope-from ) id 1sbPKF-003VTG-5i for pgsql-bugs@lists.postgresql.org; Tue, 06 Aug 2024 18:54:28 +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 476IsPHW1807628; Tue, 6 Aug 2024 14:54:25 -0400 From: Tom Lane To: Robert Haas cc: =?UTF-8?B?0JDQvdC00YDQtdC5INCg0LDRh9C40YbQutC40Lk=?= , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18545: \dt breaks transaction, calling error when executed in SET SESSION AUTHORIZATION In-reply-to: References: <18545-feba138862f19aaa@postgresql.org> <72802.1721415837@sss.pgh.pa.us> <1722241488.182053205@f169.i.mail.ru> <3593204.1722466756@sss.pgh.pa.us> <3618203.1722473994@sss.pgh.pa.us> <916377.1722809337@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Tue, 06 Aug 2024 14:48:06 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1807626.1722970465.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 06 Aug 2024 14:54:25 -0400 Message-ID: <1807627.1722970465@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Sun, Aug 4, 2024 at 6:08 PM Tom Lane wrote: >> However, what the farm found is that assign_client_encoding >> is flat-out broken. It's ignoring the first commandment >> for GUC hooks, which is "Thy assign hooks shalt not fail". > Interesting. Looks like my mistake, dating to > 10c0558ffefcd12bf1d3dc35587eba41d1ce4571. I'm honestly kind of > surprised that nobody discovered this problem for 8 years. I would > have expected it to cause more problems. Yeah, it's a bit accidental that that's not reachable up to now. Or I think it's not reachable, anyway. If we find out differently we can back-patch 0ae5b763e, but for now I refrained. regards, tom lane