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 1tid4U-000YKY-0V for pgsql-general@arkaria.postgresql.org; Thu, 13 Feb 2025 17:32:18 +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 1tid4R-00BQHa-Qi for pgsql-general@arkaria.postgresql.org; Thu, 13 Feb 2025 17:32:16 +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 1tid4R-00BQHS-Fy for pgsql-general@lists.postgresql.org; Thu, 13 Feb 2025 17:32:16 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tid4P-000eNP-2C for pgsql-general@lists.postgresql.org; Thu, 13 Feb 2025 17:32:15 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-43961c966a8so7068865e9.1 for ; Thu, 13 Feb 2025 09:32:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739467932; x=1740072732; 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=YgRqcD3GnXhlOX2X1mrCfuQuXkF8bx7DcKKbTZKFLGE=; b=aH6Xr6R1e1ybwE99qtw64CvDCshpsKCNzgzUSUrMI/Ispp8FQCpFTiAzVOd8mkM3vZ MQuwwUY0AYJdPL5IerWRY6A1BGz9hCurpnwaEIxVQ1Pll8t2VuxGMtYOHOTUA0AXwCLF UziDJv3/3ZcJvDW+8XURkG+5Gp04ct5MZT3HzbNH1kkkeYtSzI9bRvuHZorVfOom1CLs S1ZU69SK2G15YMer4sv/wmLaV5SV0xGrpjQVwtz9D2zKxg7JgdQcSEYVHtflpLc23axE S0zSaIy6HAtJRj6YFcgN2t0RUQNsjcdVlMwcu0uHOAz8KTgnZi30kjDcXjwVu6PYlcYq NC6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739467932; x=1740072732; 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=YgRqcD3GnXhlOX2X1mrCfuQuXkF8bx7DcKKbTZKFLGE=; b=RmqBdubKeeBNPPSNgEyZvFMTZqJx8OPGRb3qI/nlJqUmlHY9dnH1dCl9RvlkYlYKaJ ft3zRngmPfuFs3MfX2fQW13AulfR52ixVWOGzWjN34+Ft5XSHLsAA7tqewYT1F8brmmd 8A+DUZmXgREMXySA8Y0U9GM5RAH3wqd1/latXA0WVZ3dgdJPIAROkQwgqtkufzJOSQoJ mX1FBPoCIzc7n50c5d8NN7w3NS4IWSooQn3cdIFVHn1s2V97NzAiiZ1rTz61IL+ObTqF S+aDFzW9p6zbi792Knt+cAPw13p7svpXV5zJOXT5kR1pE4ylGJtMBkdM6NQRwp/jCFWQ xe/g== X-Gm-Message-State: AOJu0YymZ8jSsK44GWR0NUV0aZAIvjMd686Zd/wbkIrtE6gM2s4G33VP FYqCBcl3w35DpsE8/fGYkxHqaZKXdfSsOLkxX85K6EiHIrgrbXpN X-Gm-Gg: ASbGncv9qhREJ1M84DIcIYT1do+N/3ZxlOXvyT1xvlSC0QIzT33TOj21WcI1tkQP4qf WkCTSVbIn8yI3GLp+F1ysRF694SDf7yZQZPQ921N4awWHhjN2HGfdwjoyrNmLqpEHp98FpESM5c JdZiwvSTLX9y2+5/Bu+Qm9s0RqRpVliZhocFEWbFcbRr50JNOpyW+9MaxExeOGHIuWZQ48Opscu JFFV2hnpHbIFv3YBbEJMqXV0MmglI0eJQ0hX/DoiIOHAX+V8itJXtfZfgtID6FgCFLCR4DI+l4d 6fL7EzFl7BteTACy32u6sMu5vlry+hH4x2ut3QE5abLrlRleK3CfEV/A81TRknypnMwm X-Google-Smtp-Source: AGHT+IHLpB9EZ6kpj2dVVtGdK0rfFovzw5bCGfVOWymK0A78EIAlmxBxWHCbzTL3Hpmwj3LBpNE3jw== X-Received: by 2002:a05:600c:1d02:b0:434:9934:575 with SMTP id 5b1f17b1804b1-43959a480e7mr87496505e9.16.1739467932203; Thu, 13 Feb 2025 09:32:12 -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-43961884f93sm23227715e9.27.2025.02.13.09.32.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Feb 2025 09:32:11 -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: <0150a3d8-9276-4534-9847-8d3d7bba6e16@aklaver.com> Date: Thu, 13 Feb 2025 18:31:40 +0100 Cc: pgsql-general list Content-Transfer-Encoding: quoted-printable Message-Id: References: <187f2c5d-f268-4596-bb63-c94790ae761d@aklaver.com> <99d51fe7-c6d2-4421-9456-07ed1f5703a2@aklaver.com> <5A9148A0-CF9C-4841-A9C0-D7E299AC4ADD@gmail.com> <0150a3d8-9276-4534-9847-8d3d7bba6e16@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 13 Feb 2025, at 17:40, Adrian Klaver = wrote: >=20 > Per: >=20 > https://www.postgresql.org/docs/current/ddl-priv.html >=20 > "If the =E2=80=9CAccess privileges=E2=80=9D column is empty for a = given object, it means the object has default privileges (that is, its = privileges entry in the relevant system catalog is null). Default = privileges always include all privileges for the owner, and can include = some privileges for PUBLIC depending on the object type, as explained = above. The first GRANT or REVOKE on an object will instantiate the = default privileges (producing, for example, miriam=3DarwdDxt/miriam) and = then modify them per the specified request. Similarly, entries are shown = in =E2=80=9CColumn privileges=E2=80=9D only for columns with nondefault = privileges. (Note: for this purpose, =E2=80=9Cdefault privileges=E2=80=9D = always means the built-in default privileges for the object's type. An = object whose privileges have been affected by an ALTER DEFAULT = PRIVILEGES command will always be shown with an explicit privilege entry = that includes the effects of the ALTER.)" >=20 > =46rom this: >=20 > 1) It not unusual for the field to be blank. >=20 > 2) \l only lists the privileges for the database object itself, not = any of it's contained objects. >=20 > In the original database are you executing explicit GRANTs on the = database object? >=20 > Do: >=20 > pg_restore -s -f db_name.sql ${PGDATABASE}.out >=20 > This will create a text version restore of the schema objects in the = dump file. Then search the file for GRANT statements. ${PGDATABASE}.out and ${PGDATABASE}.err are just log files of the = backgrounded pg_dump command. The .out file is empty anyway and the .err = file only contains the messages about the database being not be able to = be dropped (-c) because I sit on it, which is explainable and correct. What I mean is, in our environment there are four (application) roles = having certain privileges, one of them being the database owner while = the others have certain rights like reading or manipulating data, but no = DDL. These four roles all have their privileges shown with \l in the = access privileges column. Contrary to how I understand the documentation = of pg_restore, they are restored only if I use -cC and they are not = restored if I only use -C. Cheers, Paul=