We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
pg_dump
C:\WINDOWS\system32\cmd.exe /d /s /c "pg_dump --verbose -F c -Z 0 -N _heroku -U <user> -h localhost -p <port> <dbname> --exclude-table-data=table1 --exclude-table-data=table2'
It looks like pg_dump on Windows expects the dbname to be the last part of the command.
Running heroku pg:pull --exclude-table-data "table1;table2" results in an error with pg_dump.
heroku pg:pull --exclude-table-data "table1;table2"
pg_dump: error too many command-line arguments first is "--exclude-table-data=table1"
Expected behaviour is to pull the database without data from the specified tables
The text was updated successfully, but these errors were encountered:
@rodxavier any idea on how you solved this?
Sorry, something went wrong.
@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)
Successfully merging a pull request may close this issue.
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
The text was updated successfully, but these errors were encountered: