> Why does my stored function returns only the first row of the query instead
> of the whole set of query?
Did you declare your function to return "setof <whatever>" ?
or just use return next as it is.
> Why does my stored function returns only the first row of the query instead
> of the whole set of query?
Did you declare your function to return "setof <whatever>" ?