Re: Recursive function that receives a list of IDs and returns all child IDs - Mailing list pgsql-general

From Tom Lane
Subject Re: Recursive function that receives a list of IDs and returns all child IDs
Date
Msg-id 29267.1300898562@sss.pgh.pa.us
Whole thread Raw
In response to Recursive function that receives a list of IDs and returns all child IDs  ("Sven Haag" <sven-haag@gmx.de>)
Responses Re: Recursive function that receives a list of IDs and returns all child IDs  (Sven Haag <sven-haag@gmx.de>)
Re: Recursive function that receives a list of IDs and returns all child IDs  (Jens Kapp <jens-kapp@gmx.de>)
List pgsql-general
"Sven Haag" <sven-haag@gmx.de> writes:
> hello pgsql fans out there,
> i've already created a function that returns a list of IDs of all sub-samples based on a given sample ID. this works
fine.now i like to extend this function so that it can receive a list of sample IDs. e.g.: 

> fn_get_subsamples(IN sample_numbers SETOF integer)

There's no such animal as a function that accepts a set.  You could pass
it an array of integers instead.  Or maybe just call it more than once.

            regards, tom lane

pgsql-general by date:

Previous
From: Adrian Schreyer
Date:
Subject: Re: Weird problems with C extension and bytea as input type
Next
From: "Andy Chambers"
Date:
Subject: Dynamic Assignment