Re: Re[2]: lower() for varchar data by creating an index - Mailing list pgsql-sql

From Tom Lane
Subject Re: Re[2]: lower() for varchar data by creating an index
Date
Msg-id 23453.958662047@sss.pgh.pa.us
Whole thread Raw
In response to Re[2]: lower() for varchar data by creating an index  (Alex Guryanow <gav@nlr.ru>)
Responses Re: Re[2]: lower() for varchar data by creating an index  (Bruce Momjian <pgman@candle.pha.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Foreign keys and access privileges
Next
From: Bruce Momjian
Date:
Subject: Re: Using substr with user defined types