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 1qtCtq-00BKHw-7F for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Oct 2023 20:12:14 +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 1qtCtn-008Yds-71 for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Oct 2023 20:12:11 +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 1qtCtm-008YJU-RT for pgsql-hackers@lists.postgresql.org; Wed, 18 Oct 2023 20:12:11 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtCtg-0018yG-KH for pgsql-hackers@lists.postgresql.org; Wed, 18 Oct 2023 20:12:10 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id E1CB45F7B7; Wed, 18 Oct 2023 16:11:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snowman.net; s=dkim; t=1697659919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GcAdtxXg5FifDw3vkXISCnGvq3rI4/HmPQYYDFEdr74=; b=Fbri4yRw20OZ3kmih2MBuN6fj0jU6NyHXaKhZaw2bBdafrKOot85FUlX4ssYALC9YTLnFn s79MNDLpATodiQixGAWJC1jE2We0vhtO6bC4QTbvIrHdZzVaQyBWbE660kyAAmSnTZm/Br JnNHN7NYPFVVSonDYxgm+wVpJ/kO0WQ= Date: Wed, 18 Oct 2023 16:11:59 -0400 From: Stephen Frost To: Tom Lane Cc: Jacob Champion , Andrew Dunstan , Akshat Jaimini , PostgreSQL Hackers Subject: Re: pg_dump needs SELECT privileges on irrelevant extension table Message-ID: References: <00d46a48-3324-d9a0-49bf-e7f0f11d1038@timescale.com> <954419.1679334206@sss.pgh.pa.us> <2905669.1697573572@sss.pgh.pa.us> <2984517.1697577076@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2s+qH8c4uKhmLGt6" Content-Disposition: inline In-Reply-To: <2984517.1697577076@sss.pgh.pa.us> User-Agent: Mutt/2.1.4 (2021-12-11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --2s+qH8c4uKhmLGt6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > I wrote: > > Why are we marking extension member objects as being subject to SECLABEL > > or POLICY dumping? As the comment notes, that isn't really sensible > > unless what we are dumping is a delta from the extension's initial > > assignments. But we have no infrastructure for that, and none seems > > likely to appear in the near future. >=20 > Here's a quick patch that does it that way. The test changes > are identical to Jacob's v3-0001. What the comment is talking about is that we don't support initial policies, not that we don't support policies on extension tables at all. That said ... even the claim that we don't support such policies isn't supported by code and there are people out there doing it, which creates its own set of problems (ones we should really try to find solutions to though..). This change would mean that policies added by a user after the extension is created would just be lost by a pg_dump/reload, doesn't it? Thanks, Stephen --2s+qH8c4uKhmLGt6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEwf6gbxKhD863zrx/7WyKOINHZFUFAmUwPAwACgkQ7WyKOINH ZFVKBxAAjbMLXbE6jwaC1m/hh+BerXfLeGH9TBx9wEbXPJTcoG7tXxLffvTk9ccN 6uSbiKp2rpEZq5isWXNKwTa6c0atJ71B8T/k9n1/4uLIHf3W03G19t2TPK+pyvzU 65xcmj6fyVIO7J2UI07HMNsHfRg1FEZQNYVDegCVOkBSmHhBKqAZSr5TGqL6528P b7hDAS18RxhtwUjrRs5xGU8SU3gkI9/4/hQ9m1wT+RxnlJwpz28vMDouEZEx9Yx9 rF/dkAwUOueOMAnNCQse2OS5HHxb2dlxRWSwdC7ncG4W2WXChEOx52YQ4VUBSogV d4GHCLkxfNK6ZXcCyI2UUshmYeeGPKPAABmijCVhRsvsSwUTRbx1xD3RbXkajuEI 12ei7Cwl0H5khEyaOsv2ENEIC5PVHQjVP4IiJt7CXEB19kzbn69BnxZyC4Bl0Jed mA4rmj10SBZHrprqHSY48TNpdRgO9yAfWSPzdoMBNaYwpwdaxBhKYK4MPD7laG9O UmMTD4mifA2NpHWl2Uio3egyPpFfrJW3rrJBbKg8+fjpsg2NJs84ufB7pO5gR79u WKaMAeE2KZeZ1GtS9WIoJGEXv2Iv0peuNbFoKWnmuKqEpMXEYOAwC38QUotc/mv/ 3yyV42strz234+Nx+h1ndTmcH1a76ON01tvDi6uHOK2Lgl4dUAA= =7rPd -----END PGP SIGNATURE----- --2s+qH8c4uKhmLGt6--