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 1wVbie-0024oS-1O for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2026 21:04:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVbib-00Eiac-0o for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2026 21:04:41 +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 1wVbia-00EiaU-2w for pgsql-hackers@lists.postgresql.org; Fri, 05 Jun 2026 21:04:40 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wVbiY-00000001UVM-19dW for pgsql-hackers@lists.postgresql.org; Fri, 05 Jun 2026 21:04:40 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id BD6AD1D000E3; Fri, 5 Jun 2026 17:04:35 -0400 (EDT) Received: from phl-imap-15 ([10.202.2.104]) by phl-compute-05.internal (MEProxy); Fri, 05 Jun 2026 17:04:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=partin.io; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1780693475; x=1780779875; bh=K1qiMadFdweE9Ovb590s/ifGGACo+u1Y7gfZRObX9jM=; b= YeixUiPnabwFRsuSkSn7bLy/HPSQAFoeOzInm5C6TPSIRwTNDEy0A/M2MDUos2Ki GMQ33D68jxZrvAU1gggdQA3OC9Ais8X7QoKmGnRVD64+hB3BF3QLNCIJUDSrgYJ3 i0bL0HJVlUN0NAPjmQri4ldYYNXEmtxm8He/FoxUjjDQIWhlBTrnfZJ2IWs/1DWy ItB80/HjtfAsf4TRmXLm2BVLkrf6XScuaVSeM+Wn+JTyEW1GZdK8/3U+UiZGxih4 vWSoLtdPw7KddkTPL4NClMW/oTT4fPHwGJz8W1lGszjn2pAskYlMuhfnwyvs05MS a+HCVBIO3Ls0lGAHysHoKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1780693475; x= 1780779875; bh=K1qiMadFdweE9Ovb590s/ifGGACo+u1Y7gfZRObX9jM=; b=R Rut/98s1ctNnVw0GE0pUwvyGOlYkBO9yU5dCv711fkWW1ZW7XTwmrCpkTjl/zVlW r1lhRyafcxVs3vk0mSRhHv6PB05vz+bmBMh9aXHFUEfISXEhxivbBTjlW9jhDR8F PQ2nuLxTGDDlvM4NqWSVqZIaOW8r74MGH+NY1OX7yy5Pmg1GBfzwXJyCaQy9Nn4g 1JCc7PAGIR4minOeWL66xcXTSsNHIrBRGFV1QhJuT14W/1BAavuyF/ImK2L0UQsS fKKhjb62O8HD6VYxn/L3Hq39Ve0xMGDzLQbiDqsJr4gd3pNKUrm1h/SZK+vTvvDD /iFq+jPYLw/PrjpbTPY3A== X-ME-Sender: X-ME-Proxy-Cause: dmFkZTFhdS1Wwhn5XhypF0FGwGRAEqpnLkKLJMy3dYWijln13JY87/Zzqdx9zK3MHY77/6 ZKtxWfSwvr+LjnqW/VPXVFTKyHr3tBGsveHGhpEHUjp9SAQ3FGIL3vPzlr3twvmAwg1SZf dN6E72EwlAaZ+zjUbqrX1/1P3raH/4OgaL8wIhgmE8ebMJgxuWpcKPzsKSVQi7Ka1xa56u ugtZDKxGXZ9f+FDFw9gvWQx/HwRAv1qiEQRM4v2dgHdPY8WULyLQfM+BcL0634kFXwGwn9 Td8Idr/HZ9CnB6a8wGb+Kp8eKii3YptpLwvsaEZwkFpUIxgRSrZ8ad2D/7LxUfS1ltBsP8 uthKVOvyTVmCGLiUeIQYlOyQf9lkR55S8389oqOfgo3v0x6lTTWwPmHi8ZtiS4TPj5M3Hn t97SXkhPHSxAUCqalZIBm1ic5i8RZ97rpycB2V2QoIZmTO4OiQCgEV9j4W0isyXcwZICP6 X3fcJDlEKMj9VljwwlMcVltu/8qmn1kz2QjKxdbMBWATz3OGTF9z4ajQPND9es6iGYXQi4 YHYcidFJqOtuZdAJ/vJQmlaYHjTTxK8DUQ+7dq4VwltBPZtzKN205Zc462EsYzhqu7L/yf xVIowtqwGPX9LJaaWMJUsKbx3isrGvtazwvIH5cevooe/EBnRiwIXHw/mHzw X-ME-Proxy: Feedback-ID: idd01497b:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 2077A780076; Fri, 5 Jun 2026 17:04:35 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 05 Jun 2026 21:04:34 +0000 Message-Id: To: "Mark Wong" From: "Tristan Partin" Cc: Subject: Re: updates for handling optional argument in system functions X-Mailer: aerc 0.21.0 References: <6de20662-36fd-4e00-a0b0-75d1e9deb5c8@proxel.se> In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Patch 1 > > - proargtypes =3D> 'oid bool', prosrc =3D> 'pg_get_ruledef_ext' }, > + proargtypes =3D> 'oid bool', proargnames =3D> '{rule,pretty}', > + proargdefaults =3D> '{false}',prosrc =3D> 'pg_get_ruledef' }, There is a space missing before prosrc in the added line. Other than that one comment, this looks good to me. I am a little confused how proargdefaults works given the function takes=20 two arguments, but you only defined one default, so how does the parser=20 know that the false default is in reference to "pretty". I do see there=20 is other precedent for this pattern, so it is correct. --=20 Tristan Partin PostgreSQL Contributors Team AWS (https://aws.amazon.com)