2008/12/9 Grzegorz Jaskiewicz <gj@pointblue.com.pl>:
> Ok, how about
>
> CREATE FUNCTION FOO (one int, two float8 default 3.14, three int[] default
> '{6,7,8,90}')....;
>
> and than SELECT FOO( 777, DEFAULT, '{1,2,3,4,5}');
>
> I have no idea what SQL standard says in that case, all I know is that
> keyword DEFAULT exists in it, and is used in queries for similar purpose.
>
>
SQL standard don't say anything. Leader (in this topic) is Oracle,
and there is for this case "mixed notation" (google) -
select foo(777, three=> '{1,2,3,4,5});
it's more safe and more readable.
I did some test, and I thing so it is implementable. I had to solve
problem with hstore module. There is defined operator => too, what is
bad. But we can implemented in transformation and it should by
disabled via GUC, so it's solveable.
reagards
Pavel Stehule