SCO Openserver Release 5:
I am trying to redirect the temporary file created by pg when used with a pipe. Typically a temporary file is found in /tmp, but when the file grows too large, I am finding that it is filling the root partition. I would like to redirect the temporary file to a larger partition. I have tried setting the environment variable TMPDIR, and when I type env to check it, it is set to the new directory, but when I do a pg, it still creates the temporary file in /tmp, not in the directory set in TMPDIR.
I am trying to redirect the temporary file created by pg when used with a pipe. Typically a temporary file is found in /tmp, but when the file grows too large, I am finding that it is filling the root partition. I would like to redirect the temporary file to a larger partition. I have tried setting the environment variable TMPDIR, and when I type env to check it, it is set to the new directory, but when I do a pg, it still creates the temporary file in /tmp, not in the directory set in TMPDIR.