X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7E1F2D1B506 for ; Fri, 3 Oct 2003 22:40:17 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 61233-06 for ; Fri, 3 Oct 2003 19:39:31 -0300 (ADT) Received: from mta3.snet.net (mta3.snet.net [204.60.203.69]) by svr1.postgresql.org (Postfix) with ESMTP id 19848D1B4F0 for ; Fri, 3 Oct 2003 19:39:28 -0300 (ADT) Received: from [192.168.1.203] (167.95.252.64.snet.net [64.252.95.167]) by mta3.snet.net (8.12.3/8.12.3/SNET-smtp-1.2/D-1.1.1.1/O-1.1.1.1) with ESMTP id h93MdPIJ014164 for ; Fri, 3 Oct 2003 18:39:25 -0400 (EDT) Date: Fri, 3 Oct 2003 18:34:41 -0400 (EDT) From: Wei Weng X-X-Sender: wweng@localhost.localdomain To: pgsql-sql@postgresql.org Subject: function with variable length of parameters Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/60 X-Sequence-Number: 15460 How do I create one, such as the tsearch2 function in tsearch2 module. It takes arbitrary number of parameters. The only difference is that it is writtein in C, instead of PL/pgsql. I looked into the doc, doesn't say much about it. Thanks Wei