Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-11 20:52:43 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-11 20:52:43 +0400
commit7740005b76b179a2358d2d23714f0afad7075824 (patch)
tree832f2c02e621dd5afdffb8158c0d6c2e2509693a /lib/backup
parent2a7ae176c1d1f6c5e98c3e033cb0f7e5465ae7e6 (diff)
parentb898372154fcb1de8b1b2a7e3486a5113ecae19b (diff)
Merge pull request #4264 from andrewwutw/fix-postgresql-restore
Fix PostgreSQL database restoration problem (#4217)
Diffstat (limited to 'lib/backup')
-rw-r--r--lib/backup/database.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backup/database.rb b/lib/backup/database.rb
index 2c43ed4f6e0..c4fb2e2e159 100644
--- a/lib/backup/database.rb
+++ b/lib/backup/database.rb
@@ -26,7 +26,7 @@ module Backup
system("mysql #{mysql_args} #{config['database']} < #{db_file_name}")
when "postgresql" then
pg_env
- system("pg_restore #{config['database']} #{db_file_name}")
+ system("psql #{config['database']} -f #{db_file_name}")
end
end