Hi,
>
> I'll try to switch from Oracle to postgres for some small applications.
> Is it possible to build functions like Oracle's nvl or decode with
> pgplsql?
> How can I make a function like nvl that works for every datatype?
>
> Best regards,
> Christian
Try coalesce. The syntax is the same as nvl.
Jeff