public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tristan Partin <[email protected]>
To: Mark Wong <[email protected]>
Cc: [email protected]
Subject: Re: updates for handling optional argument in system functions
Date: Fri, 05 Jun 2026 21:04:34 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <aiMuFBFYLAWQC_5Z@ltdrgnflg2>
References: <aTiwu9o8vBkLreAL@ltdrgnflg2>
<ac63G6p1LAdbsca0@ltdrgnflg2>
<[email protected]>
<adWWX4jFbxib8oQ1@ltdrgnflg2>
<[email protected]>
<adaaL5VD9bfipZQI@ltdrgnflg2>
<aiMuFBFYLAWQC_5Z@ltdrgnflg2>
> Patch 1
>
> - proargtypes => 'oid bool', prosrc => 'pg_get_ruledef_ext' },
> + proargtypes => 'oid bool', proargnames => '{rule,pretty}',
> + proargdefaults => '{false}',prosrc => '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
two arguments, but you only defined one default, so how does the parser
know that the false default is in reference to "pretty". I do see there
is other precedent for this pattern, so it is correct.
--
Tristan Partin
PostgreSQL Contributors Team
AWS (https://aws.amazon.com)
view thread (18+ messages) latest in thread
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: updates for handling optional argument in system functions
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox