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 1tJPKl-002nyd-TR for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2024 03:48: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 1tJPKi-009jeU-7K for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2024 03:48:49 +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 1tJPKg-009jeL-L3 for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2024 03:48:49 +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 1tJPKa-001I0y-OJ for pgsql-general@postgresql.org; Fri, 06 Dec 2024 03:48:46 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.stl.internal (Postfix) with ESMTP id 2C6C011401D5; Thu, 5 Dec 2024 22:48:39 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Thu, 05 Dec 2024 22:48:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= 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=1733456919; x=1733543319; bh=6qJ7GfKYdKJSGOumMb26foxUjFoheuGc6nJ/7d1l4lQ=; b= lX8VneNgM9SY8JGSEn8Cja9O7wv4Q1ygcEPip0rr2eP5Szmin69VLNczo4JmgbIv IpQuxsG/WhZ88x+8n/gdPYuAsd/kwbxGRnEWG/AXI9x4bnF0xKiR8ydeCAA34jPt 3BlcTEzzr2Oc31Q5Ib+bLFjmThaN81iJPcS3I0Eswos9iuwT1/48dWv7zJp3xu+a zKfHyBlBf4y21c1l9GxUeAaRaN67kZhfafe/FNQG0ZGrwrVr+ZTL6jwNtUy4jymK DOU78OMVslEVALxyQfkdRwbetQ13SVhVfurCINN4S0bGMZee0AnBWa/FPtxP1O5N 9ww9Ksz0fIZLD07+PYvWGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1733456919; x=1733543319; bh=6 qJ7GfKYdKJSGOumMb26foxUjFoheuGc6nJ/7d1l4lQ=; b=Frs2JstWcS5msO8gP 8bPV5DyM0pPB3JKWJ4J97ajKmEyRTEu01KkCQZ8kmx8dpuyguOG4dfhStE9hztna 4vVNyk0P2grZrtHLimJhN55V5BorZTdgbVcIqXc8kD00fkiGqFWx3og/EZByxCtR 72uD2Cno7UBLgejM+KkqB5wfto5eLq/rnWD1Li/Pfp7v5gwSfMCeMtfDZz1dEOhJ b0ZSVgLoDZmJb0UFw1Xp4SA20FcidEdLG47gpN4kNQp34MDaMvwR7JYvFax6W7IM mDTUOJynVDsrhEcSLDy1wF5eC/U5eu94sdWp6Hqr3tTvetqagf3uWyJisojxhNIy D3x+Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrieekgdeivdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuf fvfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcu oegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtth gvrhhnpeffleegieefgfevudehtdfhkeeutdffjeevgeffgeejvedthefgudeiteefheej heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrug hrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopedv pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehrohhnlhhjohhhnhhsohhnjhhrse hgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlhesphhoshht ghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Dec 2024 22:48:37 -0500 (EST) Message-ID: <09e17634-f0a7-4fd6-9901-f76daf8654a7@aklaver.com> Date: Thu, 5 Dec 2024 19:48:37 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Errors when restoring backup created by pg_dumpall To: Ron Johnson , pgsql-general 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> Content-Language: en-US From: Adrian Klaver In-Reply-To: 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/5/24 18:44, Ron Johnson wrote: > On Thu, Dec 5, 2024 at 6:24 PM David G. Johnston > > wrote: > > On Thu, Dec 5, 2024 at 4:04 PM Ron Johnson > wrote: > > Another alternative is to open the .sql file in Notepad++, then > add "public." before all the unqualified "earth" and > "ll_to_earth" references. > > > And as discussed there are none in that file because those > references are within an extension's objects and only create > extension appears in the file. > > > Then why would changing search_path work? Because that is set for each database before the objects in that database are created. That means anything that is created subsequently will be have access to all other objects created in the path. This would include objects created indirectly from an extension as well as objects that include non-schema qualified names. > > -- > Death to , and butter sauce. > Don't boil me, I'm still alive. > lobster! -- Adrian Klaver adrian.klaver@aklaver.com