Re: add function argument name to substring and substr - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: add function argument name to substring and substr
Date
Msg-id c8a81a18-d3e6-4386-a0ca-efc88dcce301@eisentraut.org
Whole thread Raw
In response to Re: add function argument name to substring and substr  (jian he <jian.universality@gmail.com>)
Responses Re: add function argument name to substring and substr
List pgsql-hackers
On 31.12.25 08:47, jian he wrote:
> rebased, and rechecked it again.
> 
> seems no changes to the citext extension are required, since the citext data
> type does not define specialized substring/substr function.

I don't really see the point of this.  These are standardized functions, 
and people should be using them in the standardized ways.  By adding 
parameter names, we are opening up the use of these in nonstandard and 
unportable ways.  I don't think the arguments of these functions are 
terribly confusing that use of named parameters adds much value.  At 
least I didn't see this argument being made.

Furthermore, if we somehow decided to do this, let's not do it four 
functions at a time but have a general plan about whether, why, and how 
to add parameter names to built-in/standard functions.




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: pg_plan_advice
Next
From: Peter Eisentraut
Date:
Subject: Re: [PATCH] Provide support for trailing commas