Michael Fuhr <[EMAIL PROTECTED]> writes: > On Mon, Feb 14, 2005 at 07:32:15PM +1100, John Hansen wrote: >> Is there a way for a C function to determine the name of the >> schema in which is was created?
> Dunno if there's anything as simple as whats_my_schema(), but > fcinfo->flinfo->fn_oid should contain the function's oid. If nobody > mentions an easier way, you could use SPI to query pg_proc and > pg_namespace. In C, it'd be a lot easier (and faster) to do a couple of SearchSysCache calls than to use SPI to get those rows. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster