Hi,
I'm a begginer in postgres.
How can I call a function inseide a block?
I've create the following function:

CREATE OR REPLACE FUNCTION mysum(i integer) RETURNS integer AS $$
BEGIN
RETURN i + 1;
END;
$$ LANGUAGE plpgsql;

Then I want to call it inside the following block:

declare @ret;
begin
set @ret=mysum(3);
end

but I get the message: 3.10: syntax error, unexpected character
I've always developed in Oracle Pl/Sql and which is the right sintax for call a function in plpgsql?
Thanks!