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.96) (envelope-from ) id 1wg2eE-005sYV-0b for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Jul 2026 15:51:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wg2eC-00Aawq-1X for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Jul 2026 15:51:16 +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.96) (envelope-from ) id 1wg2eC-00Aawi-0c for pgsql-hackers@lists.postgresql.org; Sat, 04 Jul 2026 15:51:16 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wg2eA-00000001U0v-1Ykq for pgsql-hackers@postgresql.org; Sat, 04 Jul 2026 15:51:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 664FpA3T228455; Sat, 4 Jul 2026 11:51:10 -0400 From: Tom Lane To: Noah Misch cc: Ashutosh Bapat , pgsql-hackers@postgresql.org Subject: Re: PROPERTY GRAPH pg_dump ACL minimization In-reply-to: <20260704144630.34.noahmisch@microsoft.com> References: <20260630023308.c7.noahmisch@microsoft.com> <2453089.1782789061@sss.pgh.pa.us> <20260704144630.34.noahmisch@microsoft.com> Comments: In-reply-to Noah Misch message dated "Sat, 04 Jul 2026 07:46:30 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <228453.1783180270.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 04 Jul 2026 11:51:10 -0400 Message-ID: <228454.1783180270@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Noah Misch writes: > On Wed, Jul 01, 2026 at 09:51:13PM +0530, Ashutosh Bapat wrote: >> Since property graphs share the namespace with regular tables, I think >> GRANT ... TABLE should be supported on property graphs, but restrict >> it to only the privileges applicable to property graphs. > I don't have a strong opinion on that, but I likely would have chosen to= block > GRANT TABLE on a propgraph. The backward compatibility argument written= for > SEQUENCE likely means that someone noticed GRANT TABLE worked on sequenc= es and > decided both that it was a mistake and that reversing the mistake would = be a > cure worse than the disease. My recollection is that there was an intentional policy change. Originally the idea was "why make people be careful about which kind of relation they're granting on?". The arguments made against that included: * It's exposing an implementation detail, namely that sequences and tables live in the same catalog. Admittedly that detail is also exposed by the fact that they can't share a name. * It doesn't comport very well with the fact that the sets of possible privileges are different. * It doesn't obey the SQL standard (I think, maybe someone will correct me). But you are entirely right that we felt that disallowing what used to work was worse than leaving it alone. We need not duplicate that mistake for a new kind of relation, and should not. regards, tom lane