Stored procedures and schema renames

Поиск
Список
Период
Сортировка
От Florian Weimer
Тема Stored procedures and schema renames
Дата
Msg-id 53468C5E.8060504@redhat.com
обсуждение исходный текст
Ответы Re: Stored procedures and schema renames  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-general
I would like to rename schemas without breaking the stored procedures in
them.  Currently, this does not work if the stored procedure definition
contains a schema self-reference because that does not get renamed.  I
tried "SET search_path FROM CURRENT", but that seems to expand the
search path on function definition time, which does not address this
issue either.

If backend code changes are required, what would be a reasonable way to
approach this?  Would adding a CURRENT_SCHEMA pseudo-schema which can be
used in stored procedures work?

--
Florian Weimer / Red Hat Product Security Team


В списке pgsql-general по дате отправления:

Предыдущее
От: Alberto Cabello Sánchez
Дата:
Сообщение: Re: Order By and Comparisson
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: About upgrading a (tuple?) lock in a rollback'd sub-transaction