how to execute a stored function that returns a boolean? - Mailing list pgsql-general

From J.V.
Subject how to execute a stored function that returns a boolean?
Date
Msg-id 4F9AF6D7.7010508@gmail.com
Whole thread Raw
Responses 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>)
List 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 by date:

Previous
From: Alexander Farber
Date:
Subject: Re: How to add "on delete cascade" constraints
Next
From: Raymond O'Donnell
Date:
Subject: Re: how to execute a stored function that returns a boolean?