Received: from joeconway.com (unknown [63.210.180.150]) by postgresql.org (Postfix) with ESMTP id E77EE475DE4 for ; Fri, 12 Jul 2002 11:58:02 -0400 (EDT) Received: from [206.19.64.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 3.5.9) with ESMTP-TLS id 1170351; Fri, 12 Jul 2002 08:31:29 -0700 Message-ID: <3D2EFC6B.1060900@joeconway.com> Date: Fri, 12 Jul 2002 08:57:31 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexaki Sofia Cc: Tom Lane , pgsql-interfaces@postgresql.org Subject: Re: arrays as input parameter for c functions References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200207/76 X-Sequence-Number: 2885 Alexaki Sofia wrote: > thank you for your answer. > > Could you tell me how such a function is it called? > > Let's say that the function is test(text[]) > how can I call this function from a sql command, i.e., what > will be teh value of the input parameters? > > select test(?????????) > See contrib/dblink in CVS HEAD, specifically dblink_build_sql_insert(), dblink_build_sql_delete(), or dblink_build_sql_update(). These functions accept text arrays (and int2vector) as input. In the README there are usage examples. HTH, Joe