Re: How to use one function which can be accessed for all schemas

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to use one function which can be accessed for all schemas
Дата
Msg-id 2184654.1704814196@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to use one function which can be accessed for all schemas  (intmail01 <intmail01@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Maximilian Tyrtania
Дата:
Сообщение: Re: Problem with refcursor
Следующее
От: "Wetmore, Matthew (CTR)"
Дата:
Сообщение: How to use one function which can be accessed for all schemas