Connect within a db function - Mailing list pgsql-interfaces

From Joonas Makkonen
Subject Connect within a db function
Date
Msg-id 01aa01c00615$b4626100$e62689c2@infosto.fi
Whole thread Raw
List pgsql-interfaces
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


pgsql-interfaces by date:

Previous
From: Nelson Ferreira Jr
Date:
Subject: JDBC - error reading BLOBs
Next
From: John David Garza
Date:
Subject: Re: Migration