Re: arrays as input parameter for c functions - Mailing list pgsql-interfaces

From Joe Conway
Subject Re: arrays as input parameter for c functions
Date
Msg-id 3D2EFC6B.1060900@joeconway.com
Whole thread Raw
In response to Re: arrays as input parameter for c functions  (Alexaki Sofia <alexaki@ics.forth.gr>)
List 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





pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: Wish List: Client access to NUMERIC/DECIMAL type functions
Next
From: "John L. Turner"
Date:
Subject: pg access links to another postgresdatabase