Eli Mesika has uploaded a new change for review.

Change subject: core: Unable to restore from 3.1 LogCollector...
......................................................................

core: Unable to restore from 3.1 LogCollector...

Unable to restore from 3.1 LogCollector DB backup file

In the case that restore is done from a TAR file we should try to
install the plpgsql language as well.

Change-Id: I543679f87bc9fd0f26909db3889dee482dfada77
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=960760
Signed-off-by: Eli Mesika <emes...@redhat.com>
---
M packaging/dbscripts/restore.sh
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/04/16904/1

diff --git a/packaging/dbscripts/restore.sh b/packaging/dbscripts/restore.sh
index eee49ba..67dd2a9 100755
--- a/packaging/dbscripts/restore.sh
+++ b/packaging/dbscripts/restore.sh
@@ -104,6 +104,8 @@
 echo "Restore of database $DATABASE from $FILE started..."
 if file "${FILE}" | grep 'tar'; then
     createdb -h ${SERVERNAME} -p ${PORT} -U postgres ${DATABASE}
+    # Creating the plpgsql language
+    createlang --host=${SERVERNAME} --port=${PORT} --dbname=${DATABASE} 
--username=${USERNAME} plpgsql >& /dev/null
     restore_from_tar
 else
     psql -w -h ${SERVERNAME} -p ${PORT} -U ${USERNAME} -f ${FILE}


-- 
To view, visit http://gerrit.ovirt.org/16904
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I543679f87bc9fd0f26909db3889dee482dfada77
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <emes...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to