how to execute a stored function that returns a boolean?

From: "J(dot)V(dot)" <jvsrvcs(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: how to execute a stored function that returns a boolean?
Date: 2012-04-27 19:43:19
Message-ID: 4F9AF6D7.7010508@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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();

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2012-04-27 19:48:40 Re: how to execute a stored function that returns a boolean?
Previous Message Alexander Farber 2012-04-27 19:40:51 Re: How to add "on delete cascade" constraints