Alexey Nalbat <alexey@price.ru> writes:
> So, can C-function return multiple rows?
In 7.1 it is possible to do this by using the new function-call
interface and adhering to the "functions returning sets" protocol
described in src/backend/utils/fmgr/README.
Before 7.1 there was no way --- the set-return support was a kluge
that only worked for SQL-language functions, not any other language.
regards, tom lane