Skip navigation.
Home
Freeware and Free & Open Source Software for Proprietary OSes

Reply to comment

There is always some history

There is always some history to why software decisions are made one way for one project, but differently for another. I think the reason that pg_dump doesn't create the databases for you is that it is aimed more as a general backup tool. The ability to take dump output and reload it into any database, regardless of name, has been seen as one upside. Also this allows database owners to manage thier own backups/restores without having to grant them database creation privileges. If you want to include the create database command, you can use --create flag to pg_dump to make it so.

WRT your statement that it couldn't reload the dump file that was created, that does seem odd, though I can think of some cases where you might run into problems. Without further information it's hard to give any explination, but should you find yourself in that siutuation again, please send an email to the pgsql mailing lists with details.

Reply

The content of this field is kept private and will not be shown publicly.