Re: Variadic parameters vs parameter defaults - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Variadic parameters vs parameter defaults
Date
Msg-id 1229538299.26139.28.camel@dell.linuxdev.us.dell.com
Whole thread Raw
In response to Variadic parameters vs parameter defaults  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Variadic parameters vs parameter defaults
List 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



pgsql-hackers by date:

Previous
From: "Ibrar Ahmed"
Date:
Subject: Review: B-Tree emulation for GIN
Next
From: Tom Lane
Date:
Subject: Re: Variadic parameters vs parameter defaults