Ah - user defined functions, not system functions. How many of these do you need to convert? Are there other objects (like views and stored procedures)? I do not know
postgre either so although I can see more-or-less what this should be in T-SQL I cannot account for some of the Postgre commands (e.g. COST 100 etc).