Re: WIP: default values for function parameters

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

Grzegorz Jaskiewicz <gj(at)pointblue(dot)com(dot)pl> writes:
> The default param that's in the middle. Would it be hard, or do anyone
> objects against adding 'default' keyword there, so one doesn't have to
> substitute default param 3, when he only wants to override 2nd in
> funct(1,2,3) ?

Yes, and yes. We can only allow eliminating parameters from the right,
else it becomes impossibly ambiguous.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-12-09 13:47:30 Re: Sync Rep: First Thoughts on Code
Previous Message Zdenek Kotala 2008-12-09 13:45:42 Re: cvs head initdb hangs on unixware