"Florian G. Pflug" <fgp@phlo.org> writes:
> Since context switching would occur only at two well-defined places
> (Some return_next_row function that PLs call when a SFR returns a row,
> and in the executor if no more previously returned rows from that SFR
> are available), this wouldn't introduce the usual multithreading
> headache...
Yes it would. Consider what happens if the PL function calls into SPI to
execute a query....
-- Gregory Stark EnterpriseDB http://www.enterprisedb.com