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 1tKmcW-00AkNA-Ng for pgsql-general@arkaria.postgresql.org; Mon, 09 Dec 2024 22:52:52 +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 1tKmcU-00CXBx-3C for pgsql-general@arkaria.postgresql.org; Mon, 09 Dec 2024 22:52:51 +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 1tKmZL-00CSeT-Qt for pgsql-general@lists.postgresql.org; Mon, 09 Dec 2024 22:49:37 +0000 Received: from mout-p-102.mailbox.org ([80.241.56.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tKmZJ-001xsz-Ql for pgsql-general@postgresql.org; Mon, 09 Dec 2024 22:49:36 +0000 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4Y6cVw5z24z9scX; Mon, 9 Dec 2024 23:49:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1733784568; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Fu40gDK/DNpuRSRrVBP2VggqQ5IsEi4H7kpRgaOH0mc=; b=x48eUQQ2o34wR0zDUxmgvMkbbn9i+/8P6tVqFFSfoi5lVh2l6Wp3OfMkPFeS04LXj62KwE XSk1G3A9XK5w0nmvTr4V2j6SYlcw2FWP+HWH+BQ+yPbt4froAtlXG2UCnW+Zgpf6Cz6IoS /QGXtTrUMZ4PimV8gmlz+8XGhM3if585vjrdrmqu90iqCOTxDJXt7lgHqnUdkVyH6sxIGg N7O7CWxtcHzaaKIWf/HUCxjlbj6+4TR2hBl/ZUeI1Gq2wJRZzR5lORzh2zzeeVPgB/3OsW 7vyjK676wTY5X3jZFRJdRXoz2M/X8WPP0zp2xXJIy926Uz8fTl2N1L29aZoZSQ== Message-ID: <0e6b5e36-2b02-4680-b72b-1ff46d08dfa3@mailbox.org> Date: Mon, 9 Dec 2024 14:49:14 -0800 MIME-Version: 1.0 Subject: Re: Errors when restoring backup created by pg_dumpall To: Adrian Klaver , "David G. Johnston" Cc: Tom Lane , "pgsql-general@postgresql.org" References: <6a6439f1-8039-44e2-8fb9-59028f7f2014@mailbox.org> <41791b6d-aaf5-4fed-9cc3-e89bc49e8637@mailbox.org> <1257068.1733025493@sss.pgh.pa.us> <06425038-e012-4bac-aec1-d9541436f893@mailbox.org> <92405f98-7f0c-4442-8252-697352daefc1@aklaver.com> <1470486.1733087658@sss.pgh.pa.us> <4ab662d8-57cc-471f-8a58-cfd71d1cea22@aklaver.com> <1475512.1733090108@sss.pgh.pa.us> <19d5f2c7-1252-4442-accb-8aa2cb289ad0@mailbox.org> <9a7ca237-7696-40e3-9ae6-12bd98c1b86c@mailbox.org> <5dc9dd9e-a3c9-45a1-8497-7e304812eb8c@aklaver.com> Content-Language: en-US From: PopeRigby In-Reply-To: <5dc9dd9e-a3c9-45a1-8497-7e304812eb8c@aklaver.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-MBO-RS-META: oxsohwdrgu9476hnnjk1yyn4881rgae4 X-MBO-RS-ID: 205fb5a0a2e8bd7a188 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/9/24 14:47, Adrian Klaver wrote: > On 12/9/24 14:14, PopeRigby wrote: >> On 12/7/24 11:58, David G. Johnston wrote: >>> On Sat, Dec 7, 2024 at 12:25 PM PopeRigby >>> wrote: >>> >>> >>>     It actually looks like setting those all to have public fixed >>> all the >>>     errors, including the one with lldap. So, how can I get it to >>> not put >>>     public there automatically for next time? >>> >>> >>> I assume you mean "get it to put public there" (i.e., the "not" is a >>> typo) >>> >>> You cannot. The security team has decided to not permit an opt-in >>> bypass of the lock-downs implemented to fix CVE-2018-1058. >>> >>> Your only real choice at the moment is to replace the function call >>> in the generated expression with a custom function and in that >>> custom function's create function command attach a "set search_path >>> to public" clause.  That will prevent inlining and also ensure the >>> public schema is in the search_path when executing the >>> public.ll_to_earth function call.  With that in place the empty >>> search_path in the dump file will no longer matter. >>> >>> David J. >>> >> Yeah, that was a typo. It seems weird that this behavior would be >> broken by default though, is there anything that could fix it upstream? >> > > You could file an issue here: > > https://www.postgresql.org/account/login/?next=/account/submitbug/ > > Ask if the developers could use the mechanisms available here: > > https://www.postgresql.org/docs/current/extend-extensions.html#EXTEND-EXTENSIONS-RELOCATION > > > to schema qualify the objects in the extension. > > Not sure if that will fly or not, but it is worth a shot. > Will do!