On 02/26/2014 10:15 AM, salah jubeh wrote:
> I think, there is a difference between optional parameters and default 
> parameter values. So, my suggestion would be something like this.

> SELECT default_test(1,3, DEFAULT); -- match function number 1
> SELECT default_test(1,3); -- match the function number 2 
> SELECT default_test(1); -- ERROR
> Regards

This would break at least 4 major applications which I personally have
worked on, and the benefit to users is unclear at best.

One of the main reasons to *have* default parameters is to allow adding
new parameters to existing functions without breaking old application
code.  So, -1 from me.

Josh Berkus
PostgreSQL Experts Inc.

Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:

Reply via email to