Re: Schema name of function

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: John Hansen <john(at)geeknet(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Schema name of function
Date: 2005-02-14 09:20:12
Message-ID: 20050214092012.GA4283@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Jowett 2005-02-14 10:52:59 Re: Dealing with network-dead clients
Previous Message Richard Huxton 2005-02-14 08:47:30 Re: Dealing with network-dead clients