Re: Re[2]: lower() for varchar data by creating an index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re[2]: lower() for varchar data by creating an index
Дата
Msg-id 23453.958662047@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re[2]: lower() for varchar data by creating an index  (Alex Guryanow <gav@nlr.ru>)
Ответы Re: Re[2]: lower() for varchar data by creating an index  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-sql
Alex Guryanow <gav@nlr.ru> writes:
> my-db=> DROP FUNCTION lower(varchar);
> ERROR:  RemoveFunction: function "lower" is built-in

You can get rid of it by deleting the pg_proc tuple directly.  I wonder
though whether RemoveFunction isn't being overly protective --- is there
any good reason not to allow people to delete built-in functions?
Obviously you have only yourself to blame if you delete integer equals
or something equally critical ;-) ... but there are a boatload of
built-ins that are by no means critical.  Comments anyone?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Foreign keys and access privileges
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Using substr with user defined types