Function and Procedure with same signature?

Поиск
Список
Период
Сортировка
От Deepak M
Тема Function and Procedure with same signature?
Дата
Msg-id CAMywLyJnJmJCiv8+B4bX4m84Tf1aDgxyh4CAu7cGem=qTtgZzQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Function and Procedure with same signature?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-hackers
Hello Hackers,

Folks, When tried to create a function with the same signature as procedure it fails.

postgres=#  create or replace procedure obj1(char) language plpgsql as $$  begin select $1; end; $$;
CREATE PROCEDURE
postgres=# create or replace function obj1(char) returns void language sql as $$ select $1 $$;
ERROR:  cannot change routine kind
DETAIL:  "obj1" is a procedure.

any reason for failures?
Can procedure or function can be defined with the same signature i.e. name and IN arguments ?
as callable for both is different.?

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Nathan Bossart
Дата:
Сообщение: Re: glibc qsort() vulnerability
Следующее
От: Pavel Luzanov
Дата:
Сообщение: Re: Add semi-join pushdown to postgres_fdw