remove command-not-found tests for COPY
After commit 2b51c16b Greenplum diverged from the upstream behavior of using `popen`, and instead captures the stderr of the COPY PROGRAM and prints that out in case of error (read: non-zero return status). This means that we no longer specially handle the case of return status 127 and use `wait_result_to_str` to tell the user "command not found". Instead, we output whatever is in the stderr of the standard shell /bin/sh. That means a command-not-found is completely indistinguishable from the case where the program invoked returning non-zero status and printing something into its stderr. Moreover, the output of command-not-found is not portable, and not really controlled by Greenplum/Postgres. We already have coverage for cases involving returning stderr from segments and master to the user, and the command not found cases are not only redundant coverage, they are also brittle. This commit removes the test cases for command-not-found and updates the expected test output.
Showing
想要评论请 注册 或 登录