[GENERAL] Joining with set returning functions

2007-07-15 Thread Tuukka Norri
Hi all, Can tables be joined with set returning functions? For example, it is indeed possible to perform queries such as this: SELECT oid, do_something (oid) FROM pg_class WHERE relkind = 'r'; Here, do_something returns only one record. What I'd like to do instead is to select from a funct

[GENERAL] Field names and NEW

2006-05-05 Thread Tuukka Norri
; spi_exec_query ($query); return; $$ LANGUAGE PLPERL; However, I would rather use PL/PgSQL, since the Perl interpreter might not be installed by default. Is there a way to access the NEW record without knowing the field names in advance? -- Best regards, Tuukka Norri ---(end of broadcast)--- TIP 6: explain analyze is your friend