pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Noah Misch <noah@leadboat.com>
Cc: Melanie Plageman <melanieplageman@gmail.com>
Cc: gonzalemario@gmail.com
Cc: dbryan.green@gmail.com
Cc: euler@eulerto.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: pg_get_*_ddl() needs a redesign
Date: Thu, 10 Sep 2026 19:59:08 -0400
Message-ID: <15fec0f0-a076-499a-8349-e1b2aac0f4f2@dunslane.net> (raw)
In-Reply-To: <f53bde0b-9707-4696-a243-1e4d05b112ed@dunslane.net>
References: <20260827015242.54.noahmisch@microsoft.com>
	<CAAKRu_a0KX2OONvtcEOwyOX0DzOC-B8sh-w8s5tNkKwczmVzeQ@mail.gmail.com>
	<c75aa91a-7029-4c69-9f98-fe4d2f18bc11@dunslane.net>
	<20260909172132.0a.noahmisch@microsoft.com>
	<640139.1788975299@sss.pgh.pa.us>
	<ccd76a86-51c0-4395-b6b2-2e7214c2fbf2@dunslane.net>
	<ia2gifmcdsiunj3j6i4yumnnzru45nvet4mxtydb6nodwrvkhe@qkd7lzlxsrht>
	<f53bde0b-9707-4696-a243-1e4d05b112ed@dunslane.net>


On 2026-09-09 We 6:25 PM, Andrew Dunstan wrote:
>
>
> Thanks for reviewing. I hope to have some proposals tomorrow for 
> addressing these issues as well as those raised by Noah.
>
>
>

I have run out of time, energy and brain cells. I have some working 
patches, but a) they need a little polish and b) I think they are too 
invasive for consideration now. The major difference in actual code (as 
opposed to testing) is in how we deal with permissions. I spent quite a 
lot of time yesterday and today on that, and came to the conclusion that 
it needs to be reworked along these lines: we should allow the user to 
see the information the functions provide if and only if they can see it 
by directly selecting from the catalog. Code changes to implement this 
by directly running ACL checks onĀ  the relevant catalogs are 
straightforward but also substantial. My proposed changes to testing are 
also substantial, being both more efficient and providing better 
coverage, especially w.r.t pg_dump/all compatibility.

I therefore suggest that we revert for release 19, but not in master, 
and I will continue to polish the patches I mentioned and publish them 
in a few days.

I can make the revert happen in the next day or so.


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com







view thread (32+ messages)  latest in thread

Message-ID: <15fec0f0-a076-499a-8349-e1b2aac0f4f2@dunslane.net>
Permalink:  ../15fec0f0-a076-499a-8349-e1b2aac0f4f2@dunslane.net/
Also on:    postgresql.org/message-id/15fec0f0-a076-499a-8349-e1b2aac0f4f2@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: andrew@dunslane.net, andres@anarazel.de, tgl@sss.pgh.pa.us, noah@leadboat.com, melanieplageman@gmail.com, gonzalemario@gmail.com, dbryan.green@gmail.com, euler@eulerto.com
  Subject: Re: pg_get_*_ddl() needs a redesign
  In-Reply-To: <15fec0f0-a076-499a-8349-e1b2aac0f4f2@dunslane.net>
  References: <20260827015242.54.noahmisch@microsoft.com> <CAAKRu_a0KX2OONvtcEOwyOX0DzOC-B8sh-w8s5tNkKwczmVzeQ@mail.gmail.com> <c75aa91a-7029-4c69-9f98-fe4d2f18bc11@dunslane.net> <20260909172132.0a.noahmisch@microsoft.com> <640139.1788975299@sss.pgh.pa.us> <ccd76a86-51c0-4395-b6b2-2e7214c2fbf2@dunslane.net> <ia2gifmcdsiunj3j6i4yumnnzru45nvet4mxtydb6nodwrvkhe@qkd7lzlxsrht> <f53bde0b-9707-4696-a243-1e4d05b112ed@dunslane.net> <15fec0f0-a076-499a-8349-e1b2aac0f4f2@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox