Tom,
You are right, that was the problem.
A reminder for me to read the function definitions I am using.
regards,
Herwig
2017-02-09 17:57 GMT+01:00 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> Herwig Goemans <herwig(dot)goemans(at)gmail(dot)com> writes:
> > v_doc_fnc = replace(v_doc_fnc,'public.',null);
>
> I'm pretty sure that will result in NULL always. NULL is not another
> spelling for the empty string, no matter what Oracle says ;-)
>
> regards, tom lane
>