Bruce Momjian <pgman@candle.pha.pa.us> writes: > The code right now tests for 'cwd' first and just errors out if it can't > find it. Is it worth refactoring it so you can run pg_dumpall from a > directory you can't view? Instead of checking 'cwd' right at the start > we would have to find it only when we need it, and in several places or > in a function call. It doesn't seem worth it to me.
... and it would *still* fail if you tried to call pg_dumpall via a symlink or relative path. Unless someone knows a portable way to resolve symlinks without doing a chdir first, I think there's no way to avoid the surprise factor. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match