Connect within a db function
Connect within a db function
От:
"Joonas Makkonen" <joonas.makkonen@infosto.fi>
Дата:
Is it possible to connect to another db in a function called from sql. ie. SELECT foobar(args) FROM dummy; where foobar is a function that makes a connection to another db and does a few things. The problem is that when ever the function makes a connection the backend dies violently. Is this a bug or is such behaviour forbidden? The function is written in C. When tested in a separate program it works just fine. Joonas Makkonen