From version pgAdmin IV 4.6 and up, I am now receiving the following error message when I import a database into PostgreSQL.
The database loads fine, but the error that public already exists seems strange. Public is the default schema when creating a database – should the message just give a warning instead of an error?
Having a Failed (exit code: 1) error makes it seem like the file did not load – when in fact it did.
This should be handled better.
Those errors don't come from pgAdmin - they come from pg_restore (which is part of PostgreSQL). pgAdmin is just displaying the output it gets from the tool.