In oracle database following syntax create or replaces function function_name even if we only change the function signature.(i.e data type of function. like varchar to varchar2) create or replace function function_name(numstr Varchar) // function body /
but in case of edb/open source postgres above query and changes will create new multiple function with same name but different datatypes.
SELECT oid::regprocedure FROM pg_proc WHERE proname = 'function_name';
oid
function_name(integer) function_name(character) function_name(character varying) (3 rows)
What i am missing here, because replace should update existing function and it should not create new function?