pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Noah Misch <noah@leadboat.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
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: Wed, 09 Sep 2026 13:34:59 -0400
Message-ID: <640139.1788975299@sss.pgh.pa.us> (raw)
In-Reply-To: <20260909172132.0a.noahmisch@microsoft.com>
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>

Noah Misch <noah@leadboat.com> writes:
> I want to clarify one thing before you spend much time on fixes.  I don't see
> "fixes" addressing this thread as a whole, unless you plan to dispute the
> premise that the feature needs a redesign.  In other words, I think the thread
> outcome should be one of these:

> - My review erred in determining that the feature needs a redesign.  The
>   design is sound and should proceed, possibly with some fixes.

> - Revert the feature.

FWIW, I agree with Noah's point that having two independent
implementations of SQL reverse compilation is not really a place
we want to be: it will be a major PITA for future development.

Unfortunately, I see no practical way to have pg_dump share code with
the backend for most of this stuff; not least because pg_dump has to
support dumping from old backends that won't have any such feature.
So we either swallow that duplication or decide that we're never
going to support this in the backend.  Neither choice is palatable,
but I don't think I want to be forced into the duplicative approach
when we've not explored other alternatives (such as refactoring
pg_dump to expose its internal logic in some way).

			regards, tom lane






view thread (32+ messages)  latest in thread

Message-ID: <640139.1788975299@sss.pgh.pa.us>
Permalink:  ../640139.1788975299@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/640139.1788975299@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, noah@leadboat.com, andrew@dunslane.net, melanieplageman@gmail.com, gonzalemario@gmail.com, dbryan.green@gmail.com, euler@eulerto.com
  Subject: Re: pg_get_*_ddl() needs a redesign
  In-Reply-To: <640139.1788975299@sss.pgh.pa.us>
  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>

* 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