Hi Ron,
I did try using -Fc clause. pg_dump is running fine but pg_restore is having the same issue.
I tried once again now after seeing your email and getting the same scenario.
Pg_Dump:- PS H:\> pg_dump -Fc -v -h sharded -U db_sarwar -d NGBRDVDB -t 'bronxdev.errors' -f C:\Mohammed\Work\NGC\Apps\Bronx\Backups\Dumps\data\backup_Dev_Bronxdev-Errors_20231024-6.DUMP Password:
Pg_dump ran fine.
Pg_Restore:-
PS H:\> pg_restore -v -h sharded -U db_sarwar -d bronxdb1 -t 'bronxdev.errors' C:\Mohammed\Work\NGC\Apps\Bronx\Backups\Dumps\data\backup_Dev_Bronxdev-Errors_20231024-6.DUMP pg_restore: connecting to database for restore Password: pg_restore: implied data-only restore PS H:\> pg_restore -Fc -v -h sharded -U db_sarwar -d bronxdb1 -t 'bronxdev.errors' C:\Mohammed\Work\NGC\Apps\Bronx\Backups\Dumps\data\backup_Dev_Bronxdev-Errors_20231024-6.DUMP pg_restore: connecting to database for restore Password: pg_restore: implied data-only restore PS H:\>
It has no errors but it did not restore the data.
Thanks,
Sarwar
From: Ron <ronljohnsonjr@xxxxxxxxx>
Sent: Tuesday, October 24, 2023 1:08 PM To: pgsql-admin@xxxxxxxxxxxxxxxxxxxx <pgsql-admin@xxxxxxxxxxxxxxxxxxxx> Subject: Re: pg_restore is not working On 10/24/23 11:43, M Sarwar wrote:
Why "-Ft" instead of "-Fc" for a .dump file?
--
Born in Arizona, moved to Babylonia. |