pg_dump_anon not working with file output
Hello,
When using pg_dump_anon with
-f, --file=FILENAME output file
I don't have any data dumped.
While looking at the script I've found that this line :
dumped_tables=`$DUMP $exclude_table |awk '/^CREATE TABLE /{ print $3 }'`
Return an empty list. This is because the $DUMP command contains the -f option and does not output to stdout (and so awk has nothing to transform).
I'm not sure what is the best way to fix this.
Thanks,