← Back to team overview

mahara-contributors team mailing list archive

[Bug 960631] A change has been merged

 

Reviewed:  https://reviews.mahara.org/1107
Committed: http://gitorious.org/mahara/mahara/commit/c5b26f2c7318c878eabd6d5a821c714e6dc4045c
Submitter: Francois Marier (francois@xxxxxxxxxxxxxxx)
Branch:    master

commit c5b26f2c7318c878eabd6d5a821c714e6dc4045c
Author: Richard Mansfield <richard.mansfield@xxxxxxxxxxxxxxx>
Date:   Wed Mar 21 18:21:27 2012 +1300

    Display a message when plpgsql cannot be created (bug #960631)
    
    The upgrade to 1.5 requires that the plpgsql language is available in
    postgres, but sometimes (e.g. versions of postgres < 8.3), the
    database owner doesn't have permission to create the language, and the
    admin will have to do it manually.
    
    During the attempt to issue the CREATE LANGUAGE command, an sql
    exception can be thrown when the db user has insufficient privileges,
    so a generic 'nonrecoverable error occured' message is displayed
    instead of the useful message instructing the admin to create plpgsql.
    Catching the sql exception fixes this problem.
    
    Change-Id: I176bdd1eee2247426ceedc6f165156d33eefbb42
    Signed-off-by: Richard Mansfield <richard.mansfield@xxxxxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/960631

Title:
  Upgrade to 1.5 fails if Postgres user does not have admin privs

Status in Mahara ePortfolio:
  Fix Committed

Bug description:
  When upgrading from 1.4.x to 1.5rc1, the database upgrade page
  reports: "A nonrecoverable error occured. This probably means you have
  encountered a bug in the system"

  It appears this is happening because the Postgres user does not have
  admin privs, which are required to run the CREATE LANGUAGE command.

  [DBG] 96 (lib/dml.php:159) postgres7 error: [-1: ERROR:  must be
  superuser to create procedural language] in EXECUTE("CREATE LANGUAGE
  plpgsql;"), referer: https://portfolio-
  stage.library.ucsf.edu/admin/upgrade.php

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/960631/+subscriptions