how to execute a stored function that returns a boolean?

Поиск
Список
Период
Сортировка
От J.V.
Тема how to execute a stored function that returns a boolean?
Дата
Msg-id 4F9AF6D7.7010508@gmail.com
обсуждение исходный текст
Ответы Re: how to execute a stored function that returns a boolean?  (Raymond O'Donnell <rod@iol.ie>)
Re: how to execute a stored function that returns a boolean?  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-general
I have created a stored function and wish to execute in pgadmin but keep
getting an error.

create or replace function myfunc() returns boolean
as $$
declare
begin
...
end;
$$ language plpgsql;

compiles and works just find, however when I run (in pgadmin III)

select myfunc();

I get errors telling me I need to use 'perform' instead, but when I run:

perform myfunc(); it says : syntax error at or near "perform"
LINE 1: perform myfunc();



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

Предыдущее
От: Alexander Farber
Дата:
Сообщение: Re: How to add "on delete cascade" constraints
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: how to execute a stored function that returns a boolean?