Is it possible to create a stored procedure with pgScript in its body? How?
pgScript
No, pgScript is only available inside pgAdmin3.