Re: Stored procedures and schema renames

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема Re: Stored procedures and schema renames
Дата
Msg-id 0A0C6DA1-11D3-4075-9B3C-C50DB3103A6F@gmail.com
обсуждение исходный текст
Ответ на Stored procedures and schema renames  (Florian Weimer <fweimer@redhat.com>)
Ответы Re: Stored procedures and schema renames
Список pgsql-general
Code for db functions should be a repository. Easy edit and rerun

Sent from my iPhone

> On Apr 10, 2014, at 6:19 AM, Florian Weimer <fweimer@redhat.com> wrote:
>
> I would like to rename schemas without breaking the stored procedures in them.  Currently, this does not work if the
storedprocedure definition contains a schema self-reference because that does not get renamed.  I tried "SET
search_pathFROM CURRENT", but that seems to expand the search path on function definition time, which does not address
thisissue either. 
>
> If backend code changes are required, what would be a reasonable way to approach this?  Would adding a CURRENT_SCHEMA
pseudo-schemawhich can be used in stored procedures work? 
>
> --
> Florian Weimer / Red Hat Product Security Team
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general


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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: About upgrading a (tuple?) lock in a rollback'd sub-transaction
Следующее
От: Guy Helmer
Дата:
Сообщение: Re: encrypting data stored in PostgreSQL