Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> I have to say that the error message that is produced by the above
> test case could easily send one looking in the wrong direction, and
> could perhaps stand to be improved. Could we just do getcwd() once,
> bail out if it fails, and then stash the results, rather than
> continuing on and eventually producing a misleading error message?
How does that help? We still can't print the directory name.
regards, tom lane