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 1tKrSt-00BESA-HH for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2024 04:03:15 +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 1tKrSq-00FElF-Uq for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2024 04:03: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 1tKrSq-00FEl0-GB for pgsql-general@lists.postgresql.org; Tue, 10 Dec 2024 04:03:13 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tKrSp-0020ry-8i for pgsql-general@postgresql.org; Tue, 10 Dec 2024 04:03:12 +0000 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5f29db2614eso1203511eaf.0 for ; Mon, 09 Dec 2024 20:03:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733803390; x=1734408190; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=TS7xZ+2VZ5eGceRZI30Jmsyx2NzUEUwAN6l5PB74DhI=; b=SMHDBzoERScnfdoOO36uMBR7UqOgyYBMg17KuqSWoYyAFiliQq4dAfq1IWk/IeQH99 tZc2x5pUl+p4SdYMVrTb6QXbLE1Ofhz7ZbTdvtTJfhOzTpVc3tVum3osqBaRP26hjeON lSIxw1xv6V2UGTaCknabdfpjObYfc+fj5SfWv89Ibu70OZ4DHNFqKOpD/8qh7llCCBCQ NSRNuwAwzLCcW1ypUuzVl9DcwG1c32IY4l4y+1z1cw+wHvn6MXI+opdS96FMecXkiXHp S6WOP1w9itVzgy4hVPfw1IXG4uIZOJhA+YnPxQAQTYzMAIk5H216RdKPNP2PFB5UMw5J vyOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733803390; x=1734408190; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TS7xZ+2VZ5eGceRZI30Jmsyx2NzUEUwAN6l5PB74DhI=; b=XLMQRr//zyn1QVktfE0ovX1RklhCtstQkbkVKrCes1khWR6q/hIvSZ0SpybqIAEj1k Jx+ahvnSC7CF5CGZKoymqXGFnDp1Qgt6Y+kVrCBToE07d2w9oc2Dz1jWoY0zfeCfq+Ty lRu/PnJrlg+c6yNzAdNP74xKGdKsA57ywxsEl6j+guE74keWoKV3wyn3e/ws0TNTJhY4 HNEe+IYC2ce2bfgvRskEsE4oKY+hD7cFPakq44MwJC6MCbrf5zmDOSH5yt6hl1JsPWFj G1fOy2AxdwcbHKMT25YOnDA5MtkDPU3Ja0zyJYSK3ZnzAbTbv7QfaKb5zvfkm/FnqgMb YDmA== X-Gm-Message-State: AOJu0YxtDSAO1Z7M+MRfl0gTf+2QynstbMHh7GYRRW3koY2VZqTs8Gbi l8NQ5ka1Mv8OTcDUanGQJXqsqf7Oc11mCxnf8LapaV+tGW0SxEI8/o46VQdCZtkZj731euh/Lhr iHw9637ODAVNgB/1ePQTOC7HN4wx03A== X-Gm-Gg: ASbGncuU7/zXYRQw/59VsJNweX6qRJF1Xb7V7DSbES5vd+SJGQIFUshJSmMWS2Yeqtk i2CAZokV0rG12NvGbfReqUgjcm+p9wRtDFsop18IdytYZjTJw1nikUNEoYvOYnZjEBbb3Dg== X-Google-Smtp-Source: AGHT+IFJQEuFXVFg8EZjarsgRlKvs85FcLDFiCLzDjyig4bJblVXS0zlF226d8V3uTe3/Yu+XSWZOW9J769MTpV4Iwo= X-Received: by 2002:a05:6871:ea0f:b0:29d:ccd5:16f0 with SMTP id 586e51a60fabf-29ff3a9af77mr1500216fac.20.1733803390062; Mon, 09 Dec 2024 20:03:10 -0800 (PST) MIME-Version: 1.0 References: <6a6439f1-8039-44e2-8fb9-59028f7f2014@mailbox.org> <9c5ba566-27b8-4e8c-bf7d-2dc561509991@mailbox.org> In-Reply-To: From: Ron Johnson Date: Mon, 9 Dec 2024 23:02:59 -0500 Message-ID: Subject: Re: Errors when restoring backup created by pg_dumpall To: pgsql-general Content-Type: multipart/alternative; boundary="0000000000002cd9020628e28f79" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002cd9020628e28f79 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Nov 30, 2024 at 10:36=E2=80=AFPM Adrian Klaver wrote: [snip] > In future schema qualify all references. > > For now in the dump file you could search for > > SELECT pg_catalog.set_config('search_path', '', false); > > and set to > > SELECT pg_catalog.set_config('search_path', 'public', false); > What if this had been a pg_dump --format=3D{custom,directory} backup? --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --0000000000002cd9020628e28f79 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Nov 30, 2024 at 10:36=E2=80=AFPM = Adrian Klaver <adrian.klave= r@aklaver.com> wrote:
[snip]=C2= =A0
In future schema= qualify all references.

For now in the dump file you could search for

SELECT pg_catalog.set_config('search_path', '', false);

and set to

SELECT pg_catalog.set_config('search_path', 'public', false= );

What if this had= been a pg_dump --format=3D{custom,directory} backup?

<= span class=3D"gmail_signature_prefix">--
Death to <Redacted>, and butter= sauce.
Don't boil me, I'm still alive.
<Redact= ed> lobster!
--0000000000002cd9020628e28f79--