RE: error restoring backup in version 4.4.1 - Mailing list pgadmin-support

From Gareth Vaughan
Subject RE: error restoring backup in version 4.4.1
Date
Msg-id 01ef01d4b125$91d6b260$b5841720$@specialisedstructures.co.nz
Whole thread Raw
In response to Re: error restoring backup in version 4.4.1  (Ricardo Martin Gomez <rimartingomez@hotmail.com>)
Responses Re: error restoring backup in version 4.4.1  (Ricardo Martin Gomez <rimartingomez@hotmail.com>)
List pgadmin-support

Hi Ricardo

 

Thanks for looking at this so quickly!

 

I didn’t run a second restore.  I only used this to restore the backup to a new db.

 

0) select Delete/Drop existing myDB  from the browser panel

1) create a new db named myDB via the Create - Database dialogue accessible from the browser panel

2) right click on the new myDB and select restore

3) navigate to the backup file, select the rolename and click restore

 

That process generates an error in 4.1 but works fine in 3.6

 

Gareth

 

 

From: Ricardo Martin Gomez [mailto:rimartingomez@hotmail.com]
Sent: Monday, January 21, 2019 1:59 PM
To: pgadmin-support@lists.postgresql.org; Gareth Vaughan <gareth@specialisedstructures.co.nz>
Subject: Re: error restoring backup in version 4.4.1

 

Hi Garreth,

When you run second restore.

Is the target database recreated recently?


From: Gareth Vaughan <gareth@specialisedstructures.co.nz>
Sent: Sunday, January 20, 2019 5:57:22 PM
To: pgadmin-support@lists.postgresql.org
Subject: error restoring backup in version 4.4.1

 

Hi pgAdmin support

 

Thanks for the new version.  I've tried updating but I've encountered a small error.

 

I'm currently running postgres 10.4.  I generate backups with something like:

pg_dump.exe -Fc -U myRoleName -h localhost -p 5432 --dbname=myDb --file=dbBackup.backup

 

 

To restore a backup to a new db in pgAdmin

1) create a new db via the Create - Database dialogue accessible from the browser panel

2) right click on the newly created db and select restore

3) navigate to the backup file, select the rolename and click restore

 

in pgadmin 4.3.6

this process completes successfully

 

 

in pgadmin 4.4.1 this fails with

Failed (exit code 1)

here's the error  from the detailed report:

 

pg_restore: creating SCHEMA "public"

pg_restore: [archiver (db)] Error while PROCESSING TOC:

pg_restore: [archiver (db)] Error from TOC entry 3; 2615 2200 SCHEMA public myRoleName

pg_restore: [archiver (db)] could not execute query: ERROR:  schema "public" already exists

    Command was: CREATE SCHEMA public;

 

 

 

Thanks, Gareth

 

 

 

pgadmin-support by date:

Previous
From: Ricardo Martin Gomez
Date:
Subject: Re: error restoring backup in version 4.4.1
Next
From: Ricardo Martin Gomez
Date:
Subject: Re: error restoring backup in version 4.4.1