Open rodxavier opened 2 years ago
@rodxavier any idea on how you solved this?
@shaunkh, please look at linked PR.
This fix never made it to the CLI, it shows with a merged PR linked.
I'm adding a work item to our backlog to fix this bug.
GUS Work Item (Heroku internal)
Do you want to request a feature or report a bug?
This is a bug report for Windows. This same command works as expected on Mac.
Heroku Version: heroku/7.60.1 win32-x64 node-v14.19.0 OS: Windows 10 OS Build(19044.1645)
This bug happens due to the generation of the
pg_dump
child process args. The resulting child process call for windows looks something like:It looks like pg_dump on Windows expects the dbname to be the last part of the command.
What is the current behavior?
Running
heroku pg:pull --exclude-table-data "table1;table2"
results in an error withpg_dump
.pg_dump: error too many command-line arguments first is "--exclude-table-data=table1"
What is the expected behavior?
Expected behaviour is to pull the database without data from the specified tables