Re: clone_schema function

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: clone_schema function
Дата
Msg-id efcf569b-05a2-4b78-a160-ed5c8ff7321f@mm
обсуждение исходный текст
Ответ на Re: clone_schema function  (Melvin Davidson <melvin6925@gmail.com>)
Ответы Re: clone_schema function  (Melvin Davidson <melvin6925@gmail.com>)
Re: clone_schema function  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-general
    Melvin Davidson wrote:

> "seriously flawed" is a bit of a stretch. Most sane developers would not
> have schema names of one letter.
> They usually name a schema something practical, which totally avoids your
> nit picky exception.

That's confusing the example with the problem it shows.

Another example could be:
if the source schema is "public" and the function body contains
   GRANT SELECT on sometable to public;
then this statement would be wrongly altered by replace().

My objection is not about some corner case: it's the general
idea of patching the entire body of a function without a fully-fledged
parser that is dead on arrival.


Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


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

Предыдущее
От: Igor Neyman
Дата:
Сообщение: Re: clone_schema function
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: clone_schema function