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 1wbqix-002tMj-1g for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jun 2026 02:18:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wbqiw-0094Xc-0t for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jun 2026 02:18:50 +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 1wbqiv-0094XU-3A for pgsql-hackers@lists.postgresql.org; Tue, 23 Jun 2026 02:18:49 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wbqiu-00000001fy2-2iLJ for pgsql-hackers@lists.postgresql.org; Tue, 23 Jun 2026 02:18:49 +0000 Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-36bdda53d99so2070260a91.0 for ; Mon, 22 Jun 2026 19:18:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782181127; x=1782785927; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rjouhuY2SR9bqvjKD2xOZ2Un1epXgwygoxGwOPOlAVg=; b=mpnUEypiAnsSYwj52hHjWM2F0g8DJ95t4GR+w1oPWzjV3xOBm9zsedmCjd0zF7UxUQ PYBmOy26bQibnmXDJUDQZ3Qrk9y/qp8bHj80ad7Mv4KPVnbohv86zcnDEd1qFnmWJAT6 YvD/Zq11OG0N9tKnh66XTUwlavMRuMIMB0yiPPbX+VAXA77EolKr/R6p7BV0IXZLbbU7 4GqeFs3cVCraT0fEikEP9wHaSGwlj3HjasIpkXn7yIRhTD4vfdrmQqY9y9389afnaVS+ Ouox38SkD6C0N69N2paCRHbxOtfdPIH0L3e9lHMarYAKL/QVUonTzwQIrKHH5NKdfXyd p9Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782181127; x=1782785927; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=rjouhuY2SR9bqvjKD2xOZ2Un1epXgwygoxGwOPOlAVg=; b=kya/KhJrum7RtZAd/U3dm9GoXsHjzY9FaFXqJW1NGlcUebm7KB91z4wI7FkYY0kCGa pXSckhhO+Ziyz7gLEK2Y8YTwfsgK7iM1D9dkKxN+iW/ZSOQT+ga/d3wT9EUUubeDMrBL o8g4be62DZxIaeohC4nj44QppbjyXro8qLPeX0lOaoDP/+jNv5oQRBe3tApLEjSWu5yF l0UNRaDDL8TtqHjrSvVzWW8uC13F+Ymzi/ZsfTv3RDAbXiCxAWCOGiaL4w+uUnhdrDNV G4RQbDjb7jFqNxP5oOk15aV28D9qroS84/7uMKkRLW5ZLflinrj/4znrEV1rTaFJ5mzO pyxw== X-Forwarded-Encrypted: i=1; AHgh+RpLgs5tLTn+nfIXC80xmYKZQRVEdPx6e6wYXZ7Es61nowvXww0RavX8dJ2JdGDVb/arujYwy+bY2jZEevFD@lists.postgresql.org X-Gm-Message-State: AOJu0YxF6zNHKp+I/A/mDssq0/NPN+lTn39lMLZxVFje3/b/nYAEXkjZ vMPTPc//bdRPJj97n7r8xWgtHN9hYQZb7e8JQJTN4mDeVL+Au27o6hjl X-Gm-Gg: AfdE7ckS5lXmVcpd7xKCGk3lYg2twBmX54rv09yluFoplCN6mscddcTXMCsRv2MeuhT dIRuEnLcHp4kkbNSYORfeE6xl05SV1V0WYvkAh2MuZSVlj7mv8AtGXcgspJlXDGazLUmDc0mO9X ouKlTQleboyLuIzscZ8266HK+PNLGDattehyz0YmC7+PQOQK62BKZfqeEdAIiS2rRRWyATL9T4W 4iVihe5unOBnGFaM1buP73owuRW1cVYW/eJEKswYPBVgAyxDNFCzErHvseAw+34QAHbyxMqgO3G H8T9nhQ1UayWwLEFIf8lNMEI/QuSNQCd5Q/vjSDDRiJUPnQNGM/5mNIQ57xl3ya2uA5w+w/JG62 +uD/lsHBWbSLYyGsk/BGGKurO0mUNiGipxNAs8kZdD+3hCYVYfVfULMf+BxHitxOVgZvXkJW9BU pGtYhCAOK793zohLWftPKWPA== X-Received: by 2002:a17:90b:1f91:b0:37c:83ec:1641 with SMTP id 98e67ed59e1d1-37d4d71d7d0mr12264836a91.5.1782181127132; Mon, 22 Jun 2026 19:18:47 -0700 (PDT) Received: from smtpclient.apple ([185.135.79.161]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-37d1536fbe1sm11590227a91.3.2026.06.22.19.18.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2026 19:18:46 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: [PATCH] Add pg_get_table_ddl() to reconstruct CREATE TABLE statements From: Chao Li In-Reply-To: Date: Tue, 23 Jun 2026 10:18:11 +0800 Cc: Zsolt Parragi , pgsql-hackers@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <6ADD1776-F3E4-4BCD-B569-17A61AD411D1@gmail.com> References: <983C7B03-D9C3-4F15-8913-7616EC5E6414@gmail.com> To: Akshay Joshi X-Mailer: Apple Mail (2.3864.600.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jun 22, 2026, at 22:11, Akshay Joshi = wrote: >=20 >=20 >=20 > On Mon, Jun 22, 2026 at 7:30=E2=80=AFPM Chao Li = wrote: >=20 >=20 > > On Jun 22, 2026, at 20:40, Akshay Joshi = wrote: > >=20 > > You're right, and thanks for spotting this. The existing pattern in = pg_proc.dat for variadic-text functions (e.g., jsonb_delete, = json_extract_path) uses _text at the variadic position in both = proargtypes and proallargtypes, with provariadic =3D> 'text'. That is = the convention documented by the sanity check in = src/test/regress/sql/opr_sanity.sql. > >=20 > > The same issue applies to pg_get_role_ddl, pg_get_tablespace_ddl = (both variants), and pg_get_database_ddl, but that will require a = separate patch. > >=20 >=20 > Thanks for confirming. Then I will file a patch tomorrow to fix those. >=20 > I started working on it, but if you want to take the lead, just let = me know and I won't send my version over=20 >=20 The changes to pg_proc.dat have been in my local tree for some time. = Today I also fixed the sanity check in opr_sanity so that it can now = report this mismatch. Could you please take a look at my patch [1]? [1] = https://www.postgresql.org/message-id/D41A334E-ED9E-42EE-830D-28D4D36E9317= %40gmail.com Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/