create function syntax error - Mailing list pgsql-general

From gustavo halperin
Subject create function syntax error
Date
Msg-id 44CBC4C3.2090202@gmail.com
Whole thread Raw
Responses Re: create function syntax error  (Andreas Kretschmer <akretschmer@spamfence.net>)
Re: create function syntax error  ("Shoaib Mir" <shoaibmir@gmail.com>)
List pgsql-general
Hello

I Always get "syntax error" for every function that I try to create, for
example:
    mydb'>create or replace function f_sum () returns void as '
    mydb'> select 2+2;
    mydb'>  ' LANGUAGE plpgsql;
    ERROR:  syntax error at or near "select" at character 56
    LINE 2: select 2+2;
        ^

What its the problem ??
   Thank you,
         Gustavo

pgsql-general by date:

Previous
From: Habib Seifzadeh
Date:
Subject: Re: Auto Installation
Next
From: Andreas Kretschmer
Date:
Subject: Re: Auto Installation