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 1tg5pD-007fa6-Hp for pgsql-general@arkaria.postgresql.org; Thu, 06 Feb 2025 17:38:03 +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 1tg5pC-009k9H-1H for pgsql-general@arkaria.postgresql.org; Thu, 06 Feb 2025 17:38:02 +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 1tg5pB-009k90-Jn for pgsql-general@lists.postgresql.org; Thu, 06 Feb 2025 17:38:01 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tg5p9-003ZQr-0O for pgsql-general@lists.postgresql.org; Thu, 06 Feb 2025 17:38:00 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-38db8f8786fso643068f8f.1 for ; Thu, 06 Feb 2025 09:37:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738863477; x=1739468277; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pVyDuoVfKi643zCWbhv+W7nyHDCY0mhLY/nuHcBmw7Q=; b=IAzFuDBHQyvNFFJE3s+VL1TArcE70bSIoiwQxjvlvt78LME4dlHcyRb8vppoPpzG1h vFHjAj5KoFgpmMoSIhuW+glQP3wsrjJyJFIb1IeAfMKpK/KJPVQASB5gqLPAxcxKczV2 0axpNKbhHi4ex2tzERvq+VSCwTPIap9mcT8sEr2ENhJiMgleOcstm+XSrUBqrP9rfH9S aPTn5TYrdoZr1b+rNymnU1VNS4tfWDzQehkP+JqGhPhfv7fvgH+oYi5S36WOm1N+fInx V5k1iN7EBxQrFt3WaFOUsbFMl7ip1JaOp7AHneV8tXessdbofJbkepMaDf0cIUj9d4wz 29HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738863477; x=1739468277; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pVyDuoVfKi643zCWbhv+W7nyHDCY0mhLY/nuHcBmw7Q=; b=FLRrbwaE7sIlnYXJXKS/4nt3plM55s5+DGr++K+j9aPIVx7ScxiQrY8DnzY3tlVwGJ 5WFX3V86Jv9HG8fhMgVTJI6RpsbU7VfT4xvarvd/vhiyg0x3Ym17WIxAsFMDxCMs5iJF Ca3oTPufgXp4H3vyLPG+cF0hoMz7N8Apb0GQeWX+yzBAcC9aH8Ne71F2oqDW6JcclTGH W7TJoxcdJc8viX77ea//C1IUY6CtkU+D7ELeLA0bm3pLLPVLwfLLEsen7AHNJPhqvsKD XNK1omjH+ftJ9cqxyoVtoVCoKhz65hbCXKAx2CalFf+N28kAL2XWoaGQghqYi0jA4e0K u5yQ== X-Gm-Message-State: AOJu0YxdVZ8v7/J+8qliSMA0epl3giwfC2D+hA6RHTp7PwKTrCSFCO0P M8cESTLNRmgr5Z1sPN8Qx4oKoN5VlphcolXNnHgHCSAZtQWrVhwVnBsoDw== X-Gm-Gg: ASbGncvtSqi5YRr5NUxv/R5ylu9tJr/Q2IYT62OztpouAbo06f773cTTdZdsAgK6RaH 7hkENfhrRxOe5XvRCndqqQsD04QKAx8fE+f+MlwpytAntfr11QZhQ6p8zAB5GGaf5aHkJWm15e3 loER/3bp4BXnSTpQOUbT4Dshh2XkCAdUWV563t1yxDVQ8i86DF/HYRxDQeQC5eLjcc+KGsk2xdG rcJCyGOPjeavrXH/4BUKf9saK+KfqQwhSijJDh6M5B6zgVni1zy1xQwahD/x7PnO8SpQtuftGz+ fiRbar0hOqwS+c8/IHdlMaT9jaafntU8qwfYKwOi4oJ2ehfJd49NyxSGzozTfMTt3qSY X-Google-Smtp-Source: AGHT+IEmGPmHOTJ85oEelgilRj7+whTvtCDVxJhZ95NoJiiF1BzXcqpAIuoiSPlW1tm0yg2v2BI5dw== X-Received: by 2002:a5d:6183:0:b0:38b:d9a3:6cff with SMTP id ffacd0b85a97d-38db4868381mr5962005f8f.16.1738863476772; Thu, 06 Feb 2025 09:37:56 -0800 (PST) Received: from smtpclient.apple (143-45-239-77.dyn.cable.qlnet.ch. [77.239.45.143]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38dbdd53a6esm2249374f8f.43.2025.02.06.09.37.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Feb 2025 09:37:56 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Re: libc to libicu via pg_dump/pg_restore? From: Paul Foerster In-Reply-To: Date: Thu, 6 Feb 2025 18:37:25 +0100 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <12488E77-4D0F-46B1-B7C9-BFA1D61D6B62@gmail.com> References: <2256966c-446f-4607-a47d-04b895b0747b@dalibo.com> <7A2A897E-AD8B-47F7-A29F-980D57425AD9@gmail.com> To: Guillaume Lelarge X-Mailer: Apple Mail (2.3826.400.131.1.6) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Guillaume, > On 6 Feb 2025, at 15:51, Guillaume Lelarge = wrote: >=20 > You're right. Now I see the "create database" query in your previous = email. I should have been more careful, sorry for the noise. No problem. > Well, the doc says that --disable-triggers is only relevant for = data-only restore, which is not your use case. So you don't need it and = it won't help you. Yes, I found that out too. But it doesn't hurt. =F0=9F=A4=A3 > Me neither. But another comment. You create the database, so there = should be no objects in it. Why do you use the -c, -C, and --if-exists = options? Try without them. On a new database, you should only need: >=20 > pg_restore -d mydb mydb.dump.gz I need -C because I need ACLs to be recreated too. I tried with -C only, = i.e. no -c but that doesn't work for some reason. The --if-exists is a = script remnant of my past tries to suppress some messages. I'll try = removing that as I rewrote my create database script which runs before = importing. Cheers, Paul=