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 1tgHvH-009JA3-CC for pgsql-general@arkaria.postgresql.org; Fri, 07 Feb 2025 06:33:07 +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 1tgHvF-00Fsz5-QS for pgsql-general@arkaria.postgresql.org; Fri, 07 Feb 2025 06:33:05 +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 1tgHvF-00Fsyx-G0 for pgsql-general@lists.postgresql.org; Fri, 07 Feb 2025 06:33:05 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tgHvC-004IT4-2F for pgsql-general@lists.postgresql.org; Fri, 07 Feb 2025 06:33:05 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-438a39e659cso10864565e9.2 for ; Thu, 06 Feb 2025 22:33:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738909982; x=1739514782; 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=QtvCgKxS4+6qsdARhfls4URi8yhb3sgaEhYrkspYSG8=; b=cXoyyyzj5L48wYgcZCRO11P2L/T+t6Rz99wf78EQiPeSfS7QdYvw4su4xrjxjJse5f APTOnmzN/TLCxWdkg2s5h+VWiJbAZLh8iTB1lUYlRuUGPXIuzM1DVBHdKE0SaNInzklh 7ILGNfmpmpkDU4X/ipaMF3iglZwOFnzS7u3LGrmqPVF7AtW2iuCNqgkaBiYv+QGpdSSH ncbhiK99XIWbWvzCWILw9q71Rb4zB6bMqj8cfcygrO6yjqyRFHQsuMt3Iynkw7koKNGs d+vXEY8UJaZfp1wqIBGp8Pxn0/Ap6M9ojjBteoYjFUkgCS1mz+/yP9nvUXbsswa5rgdL r0MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738909982; x=1739514782; 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=QtvCgKxS4+6qsdARhfls4URi8yhb3sgaEhYrkspYSG8=; b=BPxP9cCL5ChsSh6eYjI9poHUnMjE5Jc7dZyuX+UHJhxbQjoXbY9f8VsAh4zjY64iqk flMagjm+Qv3iugs1AHsn7CQa6ltzBOVLfYnRMRbrvjpH3JSGqtO+jN1fgTMzwSjRwBLw rtyqmbeldOXrtmpyIs9U7s/ezSeJxAJraeLgWTfD5D8ApYa87/wyfoaFK3uSqz6YLkPi jvMvK7JLEUFR7rO7cbgtHibZKUH2bQpOkjyiGP6fjFSS3hsNtStghr6QOnqHYraCFbYq Y/cttlZAAqEj5NK4ckCwOcDtXEKYwQUDnccAjK4Iy4vzWAq+6Kf9YyON0l33Dabqsp8J CRvQ== X-Gm-Message-State: AOJu0Yw5Uom0n6y+BKs3A4S8zFlqcxhq8SytSd7nZy/a2vrjPt87yrAR PQdvPNSLHnIPaFRx+0LH9AlTixzo98KLlKxBijQGNZcU7E88SyhgG1HoJQ== X-Gm-Gg: ASbGncvBJ3Q0ZrgRoIlkXmsTHQMxkyqaADw8/E5aR67hHHOqryY+a/vPntqEyE1Y5Qh c07agAW9GplTaRSKNemJnEJqk5HOGZcQvUHqt7ulsIY50yhdiSfRxVi/NO/TAc8CD3faK729K+W nVlgIKXneLLm7Pqwk4G0HP3pKJ2c+yJ7UCImHwGLGfzd82zDDaVmJwu7jnRPsp5CTLjuIjVt1LQ cgIeVeOvGliGh2fNJRXrpfxIPAJVA0WJI8E/mmZxdu8JzuMqXPyp9k2u2g/S2qOSGMeSoICN/QX 9rR3kjX9VK7ftfOFFaksbw+Ykjimb9MKmtmyYrV1+yGS4dpXEGG10ZvsGE/y/axMvnfL X-Google-Smtp-Source: AGHT+IEO2YDxtjIExWw7Rfa+iy1pnqkdl+11evi1kyo5JKL76/OoTTMbqUjgJf1EaFyFxh43rCZtZg== X-Received: by 2002:a05:6000:1865:b0:38d:b8d0:a184 with SMTP id ffacd0b85a97d-38dc935d7fbmr1062755f8f.36.1738909981862; Thu, 06 Feb 2025 22:33:01 -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-38dbdd35e9esm3529507f8f.25.2025.02.06.22.32.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Feb 2025 22:32:59 -0800 (PST) Content-Type: text/plain; charset=us-ascii 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: <187f2c5d-f268-4596-bb63-c94790ae761d@aklaver.com> Date: Fri, 7 Feb 2025 07:32:28 +0100 Cc: pgsql-general list Content-Transfer-Encoding: quoted-printable Message-Id: References: <187f2c5d-f268-4596-bb63-c94790ae761d@aklaver.com> To: Adrian Klaver 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 Adrian, > On 6 Feb 2025, at 17:31, Adrian Klaver = wrote: >=20 > 1) Log into postgres database and do: >=20 > a) DROP DATABASE mydb; > b) CREATE DATABASE mydb ; >=20 > 2) pg_restore -d mydb mydb.dump.gz With create database being "template template0", this is what = my script does. But I need the -cC options for pg_restore to get ACLs = back. Leaving out either one of them will not get me the ACLs back. >> pg_restore: error: could not execute query: ERROR: insert or update = on table "table_1" violates foreign key constraint "..._fk" >> DETAIL: Key (dokument_id)=3D(1000033680) is not present in table = "...". >=20 > Is dokument_id an integer field? Yes, it's a bigint. > In a follow post you said: >=20 > "Everything works for all databases. Only this one has that problem." >=20 > Do you mean you made the same libc --> icu change on the other = databases with no errors? Yes, I have that PostgreSQL 15.10 cluster with locale provider libc with = about 40 databases. I initdb'ed a new PostgreSQL 17.2 cluster with icu = as locale provider and did a "create database ... template template0" = for all about 40 databases. Then I did the mentioned pg_restore for each = of them as a parallel background job in the shell. The whole database cluster is about 1.2 TB in size so I have to find = ways to restore as many databases in parallel as possible. However = pg_restore only fails on this single database. All others in that = database cluster work fine. Cheers Paul