Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 57DE4133655C for ; Thu, 9 Dec 2010 17:08:48 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 36433-04 for ; Thu, 9 Dec 2010 21:08:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id D73341337B7A for ; Thu, 9 Dec 2010 17:08:40 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oB9L8dd0029822; Thu, 9 Dec 2010 16:08:40 -0500 (EST) To: Pavel Stehule cc: pgsql-bugs@postgresql.org Subject: Re: variadic flag doesn't work with "any" type In-reply-to: References: Comments: In-reply-to Pavel Stehule message dated "Thu, 09 Dec 2010 21:25:35 +0100" Date: Thu, 09 Dec 2010 16:08:39 -0500 Message-ID: <29821.1291928919@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/65 X-Sequence-Number: 28871 Pavel Stehule 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