From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: variadic flag doesn't work with "any" type
Date: Thu, 09 Dec 2010 16:08:39 -0500
Message-ID: <29821.1291928919@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTimZPnb006g7xUKS0mT3KBYngGzohsNMmGMBnFUq@mail.gmail.com>
References: <AANLkTimZPnb006g7xUKS0mT3KBYngGzohsNMmGMBnFUq@mail.gmail.com>
Pavel Stehule <pavel.stehule@gmail.com> writes:
> There is missing expansion for variadic parameter from any array to
> real parameters when variadic type is "any".
That's not a bug, it's intentional. Variadic any is intended to let the
C function accept any old parameter list. We should not assume that we
should do something special with a parameter that happens to be an array.
Possibly variadic anyarray will do what you are after.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, pavel.stehule@gmail.com
Subject: Re: variadic flag doesn't work with "any" type
In-Reply-To: <29821.1291928919@sss.pgh.pa.us>
References: <AANLkTimZPnb006g7xUKS0mT3KBYngGzohsNMmGMBnFUq@mail.gmail.com> <29821.1291928919@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox