Demo: Custom plpgsql RAISE SQLSTATE in PDOException

Written for http://stackoverflow.com/questions/15421981/how-postgres-raise-exception-gets-converted-into-pdoexception/15422304#15422304