I found the issue. Powershell interface issue. The same command is working from the dos prompt.
Thanks,
-------- Original message --------
From: M Sarwar <sarwarmd02@outlook.com>
Date: 2/13/24 3:08 PM (GMT-05:00)
To: pgsql-admin@postgresql.org
Subject: pg_restore error
Hello,
PS H:\> pg_restore -v -h bZonxdb1.cXgunmbej9Yk.us-gov-west-1.rds.amazonaws.com -U db_sarwar -d bronxdb1 -n bronx_mig -t errors_dev_inspection_20240214 C:\Mohammed\Work\NGC\Apps\Bronx\Backups\Dumps\data\backup_Dev_Files_MetErr_20240213-01.DUMP
pg_restore: error: too many command-line arguments (first is "bronxdb1")
Try "pg_restore --help" for more information.
PS H:\>
The same command was working earlier. What could be the issue here.
Thanks,
Sarwar