Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtqr3-00073T-As for pgsql-docs@arkaria.postgresql.org; Mon, 18 Sep 2017 07:52:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dtqr2-0003cs-HJ for pgsql-docs@arkaria.postgresql.org; Mon, 18 Sep 2017 07:52:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dtqr2-0003cj-8K for pgsql-docs@postgresql.org; Mon, 18 Sep 2017 07:52:32 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtqqz-000583-4V for pgsql-docs@postgresql.org; Mon, 18 Sep 2017 07:52:31 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 57B3486D6A56 for ; Mon, 18 Sep 2017 00:52:27 -0700 (MST) Date: Mon, 18 Sep 2017 00:52:27 -0700 (MST) From: athinivas To: pgsql-docs@postgresql.org Message-ID: <1505721147356-0.post@n3.nabble.com> Subject: Creating variable argument user defined functions in C MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org Hi, For my project, I need to create a variable argument function which accepts multiple strings & returns some transformed string. I've gone through the https://www.postgresql.org/docs/9.6/static/xfunc-c.html doc..But there's no clear documentation for variable args. I'able to understand we can have ArrayType as data type for same. But how to iterate & process it??? Kindly help. -- Sent from: http://www.postgresql-archive.org/PostgreSQL-docs-f2165602.html -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs