POn Wednesday, June 8, 2016, Patrick B <
patrickbakerbr@gmail.com> wrote:
Which tells me you cannot use an expression as a file name. The docs support this conclusion.
You probably need to use EXECUTE after constricting a string.
You could also try psql in a shell script.
David J.