There is no equivalent to the Oracle\'s DECODE()\'Function InPostgres`. Is there anyone who wrote decode as a Function?
If you are used to Oracle specific functions, you might want to install PostgreSQL extension orafce.
Among other Oracle specific functions, orafce also implements DECODE - one that you are looking for.
If you are running on Ubuntu, you will simply need to install package postgresql-9.1-orafce to make orafce available in your PostgreSQL server.