I have learned that I can select all of my functions with the same name using:
select *
from information_schema.routines
where routine_type='FUNCTION' and routine_name='test';
However, apparently that is a view, and when I try:
delete
from information_schema.routines
where routine_type='FUNCTION' and routine_name='test';
I get the message that I cannot delete from a view.
My initial reason for this approach is because I want a lazy drop function where I don’t have to name the parameters — I am developing a few new functions, and, at this state, the parameter list will be changeable.
Can I use this technique to drop functions with the same name? How?
psql, not a deleting a row from catalog