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 1wbfCx-002kLt-2Y for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jun 2026 14:01:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wbfCw-0071dI-1y for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jun 2026 14:01:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wbfCw-0071dA-12 for pgsql-hackers@lists.postgresql.org; Mon, 22 Jun 2026 14:01:02 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wbfCu-00000001lXs-0An8 for pgsql-hackers@lists.postgresql.org; Mon, 22 Jun 2026 14:01:02 +0000 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-36d630c0e35so4436020a91.3 for ; Mon, 22 Jun 2026 07:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782136857; x=1782741657; 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=4GEqABf07PIvkldK5odJYFuKxi2XyuZw0h7egydxAGE=; b=pVM20T3/TSPyZ8CE/fYaOgyj6/ZFgRUZa6/hL/eyQnM1zBNP8fj1lPJTt7QWST52Ux XYTqG4rL489F84JRSLBQ9kQ1XwCI6k7fAepvN0CL7Fgri3j6VMeK+hFNZXU6/+Hu7V9S HL7Z0t0pM6tHncrdYKhZd304bJWPEmghG9SPbVmIGDSDpB9npt35r00sNn7X/FVu4aQh /M1tJ7n436/66s8r7IOCEmuVBqrjMCkENtZCHBR/tMmNFfCmqjjt9Q9YmrkHkKn2UEd2 a1HFm4O8Uh3YsTngq06NUJnvRHVqMOD+626f+h/T3rI2477kYmLMa/V7EoTphVnQu6pM sCvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782136857; x=1782741657; 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=4GEqABf07PIvkldK5odJYFuKxi2XyuZw0h7egydxAGE=; b=SCGFHYoHgSkHCehtLdnfzaJv9ZSCwUfWFpm/TdcXwIKk26wGJSut2OY95LJeIBRB7i /oRlQVqzB9ceXqcmdqerAZXsMf9eYGl+VuIbeHm63Ja13BbzlR7Ok5ZIvLJQqrZPSmLo zb2v+ouYHevrqoCa148j4pxL3h83TsMQaHH6OfgjNnfhs6UTXYQw0QQQYKykoT9Kd0Qc hVWWuWxjXCHnqRrQYkPiGR0ewVW5RMna2fGSNc+j2CKBxAJ9d3x994SKtEumVKhS9/Yc 66Bw+tJacwrYHNpip5PAaG8B1tw33BAl8Tsca5D4g6ERwfhPRTOzoSNx4h9apd7Y8hri /PFw== X-Forwarded-Encrypted: i=1; AHgh+RqIvB/CfOT5BPdaWZ2azl3Fej7fS0obmJL0h/AhG3mHWcrqycaCVpCaRedoo1DMLhIYggKXuYxcu7rpJpQ+@lists.postgresql.org X-Gm-Message-State: AOJu0YzKOzU15oNTcDjJtRjYava+FxLQmQWljtKYaXebnLVq1a3umCfl f4GCar+XFTd9+J3uI3Xp1bbIK8tbdOUOdCELrXdTOnMZUN63ma47kcYY X-Gm-Gg: AfdE7cmjD5nU0/5htsGvN9Izbh99mStTt3ML24EKRwvt9FBYlgDLtAMBXcTEyuGyNlq WJwmKhPoFVn1GMBgwTQC2BW0GqDsvihkIf14iEpo84aoT9zzm4HDcVg8fA5VJAi+u9KhSuQm479 lIujkJCslNGCThNqQ0gO5s9Q3muI3FJM5HN4eF+abL1OuS6m360gomEH3kh1jQMrwhKLCGbOQ8S f2/ZDv2WACocWTfrM+WGsRkqafsqt9mVeVeChRHR51/Jv6qbZAFbY7QOwBwped6A6B605WuE/lK 7RkK4RvT+Jfeklj5bv7dLs81+fTBZGjG8FKxuPytw+AkyVGp6mFkBxtKFG5c++9V7omE+MGAtAc HtVJttpSYfYh0Td5dmIh0gsOV1IJEPUMuvJWTm6r8jSdQMi/CTQYhmQnINcfyTQhUD5RjHDkOFa KSdLblUBKRwsH9b0rKpT9rMw== X-Received: by 2002:a17:90b:1fcf:b0:36b:bec8:94c5 with SMTP id 98e67ed59e1d1-37d15de797fmr15007751a91.10.1782136857293; Mon, 22 Jun 2026 07:00:57 -0700 (PDT) Received: from smtpclient.apple ([185.135.79.161]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c8bc5a1dd9csm6932395a12.22.2026.06.22.07.00.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2026 07:00:56 -0700 (PDT) Content-Type: text/plain; charset=us-ascii 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: Mon, 22 Jun 2026 22:00:20 +0800 Cc: Zsolt Parragi , pgsql-hackers@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: 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 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 Thanks for confirming. Then I will file a patch tomorrow to fix those. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/