I keep all my functions in a text file with \'CREATE OR REPLACE FUNCTION somefunction\'.
So if I add or change some function I just feed the file to psql.
As of Postgres 10 you can drop functions by name only, as long as the names are unique to their schema. Just place the following declaration at the top of your function file: