Re: WIP: default values for function parameters

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Grzegorz Jaskiewicz <gj(at)pointblue(dot)com(dot)pl>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: WIP: default values for function parameters
Date: 2008-12-09 13:40:09
Message-ID: 493E7539.6030408@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Grzegorz Jaskiewicz wrote:
> 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}');

Yeah, that could be a useful feature.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zdenek Kotala 2008-12-09 13:45:42 Re: cvs head initdb hangs on unixware
Previous Message Tom Lane 2008-12-09 13:24:34 Re: operator does not exist: smallint <> smallint[]