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 1tibvA-000Lcz-82 for pgsql-general@arkaria.postgresql.org; Thu, 13 Feb 2025 16:18:36 +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 1tibv8-00A9bG-5k for pgsql-general@arkaria.postgresql.org; Thu, 13 Feb 2025 16:18:34 +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 1tibv7-00A9b8-RN for pgsql-general@lists.postgresql.org; Thu, 13 Feb 2025 16:18:34 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tibv6-000dhe-1k for pgsql-general@lists.postgresql.org; Thu, 13 Feb 2025 16:18:34 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-38dd14c99c3so516832f8f.3 for ; Thu, 13 Feb 2025 08:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739463511; x=1740068311; 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=XucXXPYjy9y2bPeRSxFhS55arhW4HoWkkyf7OoIODZo=; b=lUKRM+xIU+msZlSQSB0dofJTou+nCuEVjj+j0RED66vz5jdT1aRsX5DHfiqG7H1IY4 dHneVQ2jIgYh4ZYgEglAlrHPqp5ujadZo72DbPHznMITBh8Lq8I+ItU+rlJ9x20Qc3ae 5VUQ3rMTIJZ+3t2gv7MNIppjIw17/3K/8HHzJyaD3rKWsxSMQqWrejB1FIr4fdjto0yN qEgp9BN7Uq9DF1s5ZfgHFOgHfse0fBmIAvfeibuE3gvcj7eQbXL9Ddi5psfDjtGE3iUD vIPV8QJVBUtdqgKaiMymUR+IdS8iybQ4EqHqpvElALoL5trpZra8Rn0SNwEOF5hLXKnn FGMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739463511; x=1740068311; 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=XucXXPYjy9y2bPeRSxFhS55arhW4HoWkkyf7OoIODZo=; b=Qu27igpjY5V9YO+v6Um2n0YvJpwWC8yqAk+0QlgKPDPRyy31ebi+k2zzvO0ZIYPIuO EccUKwnHPbyHbi6IURabSyhQ7XLybHxs6/PLWvRaFzarA37PokpMFV3lmtMbHsnRsezr nJUPGtJcBt9t/RBFFOmj4VUuYnN52RtaWZ1cmN3EMjT8xClb5tXfbiZfW7l0OOngKMfj pAh0PG45LlSmMh4HBsabknomxS7TrbQu5bF4jquAOk9kNsQkaaO18Hlg4YrnERq2TPvr Y02oagY+o7ECv1C10CYvceRjTQjI4hRaVtHSkKynV5d2tVNkhN02CPU2st+CzzS9nw2f FZMw== X-Gm-Message-State: AOJu0YyhnCl7bhrL9oASkbtFjMNBxkQAxb7c66v67UekDiWBLt79+wie 8HBjGeDjEyw89mKofXAXMu9Gsg0rmIcs6V6T8S7Ejlk4RAI4Enw6pN4iTQ== X-Gm-Gg: ASbGncvlazXq+u3RN0pUoEUWiGcAY3Ko2OSt4SQn1+v/bDF5WUyLVR/qQutab2UnNOe v7tg4FPMEY2eRmIuFKSn0Or1YHUUxlJp8l8akRKkCqVCjMGCLaNnU9INAKvap6KxwobI8coIuDI gYa7AMRpiTBVdlYD1vYuK05cFbjU7t72mSnYFwIeArTA9MCLfvok2Tj3yiod369m7OUMF3/WTOT cqgDPrSZMU+kT5FsTSVjCNex5EjZNuv4GzIkq7yiZbM7FWynKR9lPN0Oj/qTPAMe03beEFfv/aa J/eEV3fsw8UudQOvXNMICEVWKsFU8bqziaIsEIvtCgTudd+gWy8ww0dA6ayOSGi4K3oK X-Google-Smtp-Source: AGHT+IE443KuFXKm2nvZXSnkv2254YqdaSCS0MR6AOCqAJVU2mntYiKOmT/QR/xYl1t8UGVhY3QYkA== X-Received: by 2002:a05:6000:381:b0:38f:26b4:c630 with SMTP id ffacd0b85a97d-38f26b4c860mr2404497f8f.53.1739463509792; Thu, 13 Feb 2025 08:18:29 -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 5b1f17b1804b1-4395a1aa7e8sm53321935e9.26.2025.02.13.08.18.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Feb 2025 08:18:29 -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: <99d51fe7-c6d2-4421-9456-07ed1f5703a2@aklaver.com> Date: Thu, 13 Feb 2025 17:17:58 +0100 Cc: pgsql-general list Content-Transfer-Encoding: quoted-printable Message-Id: <5A9148A0-CF9C-4841-A9C0-D7E299AC4ADD@gmail.com> References: <187f2c5d-f268-4596-bb63-c94790ae761d@aklaver.com> <99d51fe7-c6d2-4421-9456-07ed1f5703a2@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, sorry for the late answer. I'm just too busy. > On 7 Feb 2025, at 17:19, Adrian Klaver = wrote: >=20 >> 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. >=20 > That does not make sense. >=20 > Are there ACLs(privileges) in the database at all? >=20 > What is the pg_dump command you are running? I use this pg_dump command: pg_dump -Fc -Z1 --quote-all-identifiers -b "${PGDATABASE}" -f = ${dumpBase}/${clusterName}.${PGDATABASE}.dump.gz >${PGDATABASE}.out = 2>${PGDATABASE}.err & The command is embedded in a Bash script for loop that loops PGDATABASE = over all database names inside the cluster and launches pg_dump as a = background job. It then waits for all jobs to complete ("wait" command). = dumpBase is just the destination directory. If I don't use -cC, i.e. both, then the Access privileges will not be = restored. Checking with \l just shows an empty field as usual for a = newly created database. This happens at least with 17.2. I didn't check = that with 17.3 yet. I agree, from how I understood the docs I should be able to only use -C = and not -c. As for the data inconsistency, PostgreSQL is right. I found out that = some clever person did a "alter table =E2=80=A6 disable trigger all" on = a table and then manipulated data. That broke referential integrity. So, = this case is closed. Cheers, Paul=