Re: arrays as input parameter for c functions

From: Joe Conway <mail(at)joeconway(dot)com>
To: Alexaki Sofia <alexaki(at)ics(dot)forth(dot)gr>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: arrays as input parameter for c functions
Date: 2002-07-12 15:57:31
Message-ID: 3D2EFC6B.1060900@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Darko Prenosil 2002-07-12 18:14:32 Re: dbf2pg, visual foxpro and other nonsense
Previous Message Tom Lane 2002-07-12 15:26:48 Re: Wish List: Client access to NUMERIC/DECIMAL type functions