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:
authorandrewwutw <andrewwu.tw@gmail.com>2013-06-10 15:06:12 +0400
committerandrewwutw <andrewwu.tw@gmail.com>2013-06-10 15:06:12 +0400
commitb898372154fcb1de8b1b2a7e3486a5113ecae19b (patch)
tree57b40a6b9c9500bb6d950e2abc0c05f413712af9 /lib/backup
parent251945e2e56b52daaeb9c8f71fcea90ba6ad928b (diff)
Fix PostgreSQL database restoration problem (#4217)
Use psql instead of pg_restore to restore SQL dump file.
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