Re: WIP: default values for function parameters - Mailing list pgsql-hackers

From Grzegorz Jaskiewicz
Subject Re: WIP: default values for function parameters
Date
Msg-id 0D6A6431-5D24-48F6-8DC4-E3E507AFB3EA@pointblue.com.pl
Whole thread Raw
In response to Re: WIP: default values for function parameters  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: WIP: default values for function parameters
Re: WIP: default values for function parameters
List pgsql-hackers
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.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: WIP: default values for function parameters
Next
From: ohp@pyrenet.fr
Date:
Subject: Re: cvs head initdb hangs on unixware