> So, does anyone know of (or have) good examples of queries within > functions (and returning sets of data)?
I'm not very experienced in PostgreSQL but maybe SPI functions is what you
need.
Regards,
Ntinos Katsaros
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html
