redwert / pg-dump-restore

Utility that gives ability to call pg_dump and pg_restore from nodejs.
7 stars 7 forks source link

Make sure the filePath is last in the args #3

Closed Nick-Riggs closed 1 year ago

Nick-Riggs commented 1 year ago

To prevent the error "Too many command-line arguments for pg_restore"

Per Postgres Doc: Usage: pg_restore [OPTION]... [FILE]

Nick-Riggs commented 1 year ago

Was getting this error and found the answer here: https://stackoverflow.com/questions/44467272/too-many-command-line-arguments-for-pg-restore

I tested locally making sure the filePath is last and it works as expected.

redwert commented 1 year ago

I left one minor comment. Tomorrow will check with Postgress 14.x and update the version

On Thu, Mar 9, 2023, 19:20 Nick Riggs @.***> wrote:

Was getting this error and found the answer here: https://stackoverflow.com/questions/44467272/too-many-command-line-arguments-for-pg-restore

I tested locally making sure the filePath is last and it works as expected.

— Reply to this email directly, view it on GitHub https://github.com/redwert/pg-dump-restore/pull/3#issuecomment-1462352181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6YRAHT36TZUAV2XE25VJDW3H7N7ANCNFSM6AAAAAAVVKOVXY . You are receiving this because you are subscribed to this thread.Message ID: @.***>