On lör, 2011-11-26 at 10:45 -0500, Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > On fre, 2011-11-18 at 09:44 -0500, Tom Lane wrote:
> >> It wouldn't be that hard for elog.c to do strrchr(fname, '/') or
> >> something like that,
>
> > Here is a patch for that. I would also like to backpatch this.
>
> Hmmm ... is it possible that strrchr could change errno?
It's not documented to do that, and an implementation would have to go
far out of it's way to do it anyway.