Project

General

Profile

Feature #3800

PostgreSQL should include DB creation as an option

Added by kellogs almost 6 years ago. Updated over 5 years ago.

Status:
Confirmed
Priority:
Low
Assignee:
-
Category:
postgresql handler
Target version:
-
Start date:
02/12/2012
Due date:
% Done:

0%

QA Check:

Description

pg_dump has a useful command:

       -C, --create
           Begin the output with a command to create the database itself and
           reconnect to the created database. (With a script of this form, it
           doesn't matter which database you connect to before running the
           script.)

Would it be possible for backupninja to include an additional option to create the database upon restore?

Kind regards,
Kellogs

History

#1 Updated by intrigeri over 5 years ago

  • Category set to postgresql handler
  • Status changed from New to Confirmed
  • Priority changed from Normal to Low

Adding support to pass arbitrary additional options to pg_dump and pg_dumpall (possibly needs two separate options) would be great. Patches are welcome!

Also available in: Atom PDF