Can I do the following in PostgreSQL:
WHEN (my_session <> admin)
CREATE OR REPLACE FUNCTION testing123 () RETURNS VOID AS
....
...
//end of function here
In other words, if my_session <> admin is TRUE, the function will be created.