Thread: user defined function

user defined function

From
"etsuko shimabukuro"
Date:
Does anyone know how to check the existance of user defined functions ?
"\df" command lists all postgre built-in functions.

How can we filter out only user defined ones ?

----------------------------------
Etsuko Shimabukuro
etsukos@meta-bit.com
----------------------------------


Re: user defined function

From
Tom Lane
Date:
"etsuko shimabukuro" <etsukos@meta-bit.com> writes:
> Does anyone know how to check the existance of user defined functions ?
> "\df" command lists all postgre built-in functions.
> How can we filter out only user defined ones ?

As of 7.3 you can restrict \df to particular schemas, eg

    \df public.*

to see only functions defined in the "public" schema.

If you don't like that answer, issue your own query and add a check on
the ownership of the function --- try psql -E to see what its query
looks like.

            regards, tom lane