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 1tKmX6-00Ajr8-65 for pgsql-general@arkaria.postgresql.org; Mon, 09 Dec 2024 22:47:16 +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 1tKmX3-00COMR-CE for pgsql-general@arkaria.postgresql.org; Mon, 09 Dec 2024 22:47:14 +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 1tKmX1-00COMI-UY for pgsql-general@lists.postgresql.org; Mon, 09 Dec 2024 22:47:14 +0000 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tKmX0-001yd5-87 for pgsql-general@postgresql.org; Mon, 09 Dec 2024 22:47:11 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 661EB114014B; Mon, 9 Dec 2024 17:47:09 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Mon, 09 Dec 2024 17:47:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1733784429; x=1733870829; bh=iTbRZqYAsrDqjWsRqRK3mtvKzeE/1X6bN3Eg7uqKlfc=; b= G1TKexAaF6ZJtG0XX/9Ttn2BvvMq86THUljc69d3MEGwXbkYM+xHXU7FxUqmHY4j xanh1tUBDEwBAGagIjUiMdJ1GPcgNWUooScZiyjHB9qTgvBWWJhCJH+G47WHWb9t Vaq1IhQEsI1xdyyGL+RL6h7srD0+B/JOVaw8UmIIZSCo7SAhw7fN9lOth6H4HCa+ HYwiUbuI/EmZH1/3YsPqmtonWqgNqUxaM7ss48ZXgDDC3SeYNQjajRLx0kJiJb3c zvehYjmmxz/4VO3iDROnE0Jh5JO5caKk3wjW+gONm061gaZNb2xWwk699HwTgLYc f+mz5QsmKpkm5tN3yI94MQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1733784429; x= 1733870829; bh=iTbRZqYAsrDqjWsRqRK3mtvKzeE/1X6bN3Eg7uqKlfc=; b=1 RYDsu4neFef1AyRhBCOu8zgXxMvDsq41G55AjYPbXihynxmVaysnEQprr+JyKdc/ 1poIPiTbWGaPkniMj6JwEyXJEBODULxzzfmdruc0Sv8mKUgJAGmnbk0Lnn4BWAuO lXcURaa6LHoaAgtiO8WyKcjS9cRb2icFb4gXo/TmLjn84vxZIEI+pXN5a5Pkg4bX gQBnTPUFqkrFfD4momILh1iY3flWXwu1eSDGwqsogtk2/qxm5/U5uEICrQYk1ITE B6mt2YtVWjZHZ1VuI5i8PrYyqAtaOu7vfUxX+gwQ7HY1GbCwz5OLS7TUFwZcLgfM YdKPXyapJlCro/HIL0UrA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrjeejgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpefgudefkefhveefleevieeu veehvdduudekuddvvdelhfeuueeijedtuedvvedvueenucffohhmrghinhepphhoshhtgh hrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspg hrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphhophgvrhhi ghgshiesmhgrihhlsghogidrohhrghdprhgtphhtthhopegurghvihgurdhgrdhjohhhnh hsthhonhesghhmrghilhdrtghomhdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhp rgdruhhspdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlhesphhoshhtghhrvghsqh hlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Dec 2024 17:47:08 -0500 (EST) Message-ID: <5dc9dd9e-a3c9-45a1-8497-7e304812eb8c@aklaver.com> Date: Mon, 9 Dec 2024 14:47:07 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Errors when restoring backup created by pg_dumpall To: PopeRigby , "David G. Johnston" Cc: Tom Lane , "pgsql-general@postgresql.org" References: <6a6439f1-8039-44e2-8fb9-59028f7f2014@mailbox.org> <9c5ba566-27b8-4e8c-bf7d-2dc561509991@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> Content-Language: en-US From: Adrian Klaver In-Reply-To: <9a7ca237-7696-40e3-9ae6-12bd98c1b86c@mailbox.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. -- Adrian Klaver adrian.klaver@aklaver.com