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 1x4tms-007U8c-1F for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2026 05:26:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x4tmq-00C3CE-0z for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2026 05:26:56 +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 1x4tmp-00C3C6-32 for pgsql-hackers@lists.postgresql.org; Fri, 11 Sep 2026 05:26:56 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x4tmn-000000054wx-2v88 for pgsql-hackers@postgresql.org; Fri, 11 Sep 2026 05:26:54 +0000 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-85377c8bc96so470806b3a.3 for ; Thu, 10 Sep 2026 22:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1789104412; x=1789709212; darn=postgresql.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:content-type:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=3T8xJK+DOI9RzIHM5vqJG6RhHMcbvRQgbO0DnrehbnI=; b=UM0lSemFmMAXBSgqXvP7z0VuLOZ4nGOFINb204t94CoWxrapoNffsPIzXhKdGRsR4W x6J7HyILlZMjPffgtLMJuDpZJocRiPlo3bVewXME652jLVxt2euNPSuK64P2abAJh0qG goJF7iDt6BxAh5OneAfMx6J1lwX6qG4NuzzcY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789104412; x=1789709212; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:content-type:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=3T8xJK+DOI9RzIHM5vqJG6RhHMcbvRQgbO0DnrehbnI=; b=ZfiiWpU1inEE1Blv2uYY//QDRhDMqiXO358msGnuJKH9eoYzTgpf5fOBSpJsoq1NWP 9tCatBTz5pdcJyzZXQVthCbSAFAbeqW1pJMTdH/j624sw3lADP17u6nglhvSLyOJQN5H y7Dyzlsn75cSPBLevI126OodrLstufBcCMg44PwWIxfKuSCE0/N7/lRf75E83y86Yf0A kgq/wGuJPKzAVLjmvt7cF3H3lzUW/nhxT5AYz8BNypMr2lU29tVSXKdtSQQwz31JHVBX 86ryfLeP0+CmzLhT1sJWZh4LuZHUYHvcYYPCWLQ8KyKozc5fUEoyF6hI/+l0vEORhPzW jWNQ== X-Forwarded-Encrypted: i=1; AKwUvBxCR5GBvHJC/IPf2dO222EZ0LwXSPBOQlMMzzWSuknq/hlHQLo2E1Lp725LYkIirCsfuxXkajrXx7kIOJG8@postgresql.org X-Gm-Message-State: AFuF++nQSGsQRYMEe47gUdveX2yqkSoQTywUiTFkF+AKnPlfdTaJq3Hc Nvy9RbWfaM4yvQXoCUlGRyTWDstjKrhzV0Nnkxl45MUtcpEe5E9/wei3TKpPFresLg== X-Gm-Gg: AYBFou08k9kbA/YZXjvPmtBnl/wIhlEmLvJlFDzCyqLlhZCpBMiirW2u0i8bZaQg0qP WSrFaclz2zB7CIqPcbxDicJ9iI546Tud1SZtuUdhz3Agc7/AwkfqyUfTMeKvAdzodO3iUacViXg F49eSBuj7dPIGqbPh04SJgMgV52h0pn4y08ThfQnEuGruNUJ2RqzqClvPnkaDKGNWduQy+zYU7Q SEoid+rvSLC6arnvvNQv7xTnhnlQF3cxKTeO7Q1YLSSJczlraq24uSpqyl7vEVwQqSUIQ07nU7m z1GNZxX84Gf/2DC0+FxxiN3ZQtYoNgkKFwP08hYZ99gj1kkp1DAcLckBHXEWjHfEqFxKITlg9kA NK1wvk8tEI8do6l55BfFHar8+5fwlOChBYRnVsiBVTIdeYKCfYL5CvkUR2YaNRVTljZS9C6Ybrs zgDqtrUsLujUVpqWPqfnlBjiN1xC86M9mS1tF7bEAbewlQQxXMfqu6bHdrZ3I/5TcMYXbTeDHrn xkBKcLYTjndqLgjBVJFkxP6BCATumm1Wq5iPd6j8A== X-Received: by 2002:a05:6a20:93a0:b0:3bf:49c8:f7b with SMTP id adf61e73a8af0-3daed342ebamr4161536637.13.1789104412544; Thu, 10 Sep 2026 22:26:52 -0700 (PDT) Received: from microsoft.com (c-73-15-160-255.hsd1.ca.comcast.net. [73.15.160.255]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-14365b78d59sm3254239c88.8.2026.09.10.22.26.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2026 22:26:51 -0700 (PDT) Date: Thu, 10 Sep 2026 22:26:49 -0700 From: Noah Misch To: Robert Haas Cc: Andrew Dunstan , Tom Lane , Melanie Plageman , gonzalemario@gmail.com, dbryan.green@gmail.com, euler@eulerto.com, pgsql-hackers@postgresql.org Subject: Re: pg_get_*_ddl() needs a redesign Message-ID: <20260911052649.e3.noahmisch@microsoft.com> References: <20260827015242.54.noahmisch@microsoft.com> <20260909172132.0a.noahmisch@microsoft.com> <640139.1788975299@sss.pgh.pa.us> <20260910035953.59.noahmisch@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.3.0 (2026-01-25) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Sep 11, 2026 at 12:19:15AM -0400, Robert Haas wrote: > On Thu, Sep 10, 2026 at 12:00 AM Noah Misch wrote: > > Going forward, feel free to add me to the To: line of a mailing list post and > > explicitly ask me for my guess about the project's overall prognosis, likely > > ways of failing, etc. My guess may be brief and/or wrong, but I'll provide > > one. > > I don't think this is how this mailing list works. The volume is > overwhelming for me, too, but patch authors aren't obliged to cc > anyone specifially. To clarify, that text was me offering Andrew a new option, not suggesting that he has any new duty. > > When it's four months after feature freeze and I find non-subtle, unreported > > defects in the feature, the development process wasn't adequate for the > > subject matter. To be transparent, observing this outcome changed my view of > > code duplication. Duplication was always a smell, but it seemed like a > > plausible compromise tactic in 2025. Now I find the duplication gave wrong > > code too much place to hide. > > I think we would do well to confine all of our present conversations, > insofar as it is possible to do so, to whether any given feature > contains defects incompatible with shipping it. The defects are the reason not to ship this implementation. One of those defects, the inability to restore in dependency order, cannot be fixed without redesigning the current SQL-facing API. That is the reason not to ship this design. See my original post of this thread for details.