Re: Function with DEFAULT arguments

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Bailey <artacus(at)comcast(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Function with DEFAULT arguments
Date: 2010-03-12 17:40:12
Message-ID: 5175.1268415612@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Bailey <artacus(at)comcast(dot)net> writes:
> Tom Lane wrote:
>> You can only omit arguments from right to left, so basically what this
>> requires is some foresight while choosing the function's argument order.

> What do you think about allowing 'default' as a parameter the way we do
> when inserting a record?

Seems like a nonstarter because of overloading considerations --- what
are you going to do if there are multiple possible matches?

In any case, the match-arguments-by-name solution available in PG 9.0
seems a whole lot superior to complicating positional match even more.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Ross 2010-03-12 19:43:07 Re: Joining one-to-one and one-to-many tables
Previous Message Domenico Rotiroti 2010-03-12 17:17:42 [RFC] Comments on PostPic project