Absolutely! See the doc section
http://www.postgresql.org/idocs/index.php?xfunc.html
Donnahoo, George wrote:
>Does PostgreSQL support stored procedures?
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>
>