Re: Variadic parameters vs parameter defaults

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Variadic parameters vs parameter defaults
Date: 2008-12-17 18:24:59
Message-ID: 1229538299.26139.28.camel@dell.linuxdev.us.dell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 2008-12-16 at 19:07 -0500, Tom Lane wrote:
> regression=# select fv(1);
> ERROR: function fv(integer) does not exist
> LINE 1: select fv(1);
> ^
> HINT: No function matches the given name and argument types. You might need to add explicit type casts.
>
> ISTM one could make a pretty good argument that this last case should
> succeed, producing an empty-array argument.

We had a similar discussion before, and you replied here:

http://archives.postgresql.org/pgsql-patches/2008-07/msg00150.php

Are you now in favor of allowing zero arguments for a variadic
parameter?

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-12-17 18:32:00 Re: Variadic parameters vs parameter defaults
Previous Message Ibrar Ahmed 2008-12-17 18:24:28 Review: B-Tree emulation for GIN