-1

If two stored functions have the same name,name and types of arguments, but different return type, will they be considered as two distinct functions?

1 Answers1

1

It is an error to try to create a function with the same name and arguments

create function f() returns int as $$
select 1;
$$ language sql;
CREATE FUNCTION

create function f() returns text as $$
select '1';
$$ language sql;
ERROR:  function "f" already exists with same argument types
Clodoaldo Neto
  • 118,695
  • 26
  • 233
  • 260