Re: How to use one function which can be accessed for all schemas - Mailing list pgsql-sql

From Tom Lane
Subject Re: How to use one function which can be accessed for all schemas
Date
Msg-id 2184654.1704814196@sss.pgh.pa.us
Whole thread Raw
In response to How to use one function which can be accessed for all schemas  (intmail01 <intmail01@gmail.com>)
List pgsql-sql
intmail01 <intmail01@gmail.com> writes:
> I have several schemas in my database, I want to create just one function
> to use with all these schema.
> I create the function in a main schema then the trigger call the function
> and error occurs : "No function matches the given name and argument types.
> You might need to add explicit type casts."

You can either explicitly schema-qualify the function call, or make
sure that that main schema is always present in your search_path.

            regards, tom lane



pgsql-sql by date:

Previous
From: Maximilian Tyrtania
Date:
Subject: Re: Problem with refcursor
Next
From: "Wetmore, Matthew (CTR)"
Date:
Subject: How to use one function which can be accessed for all schemas