~ubuntu-branches/ubuntu/quantal/postgresql-common/quantal

« back to all changes in this revision

Viewing changes to pg_upgradecluster

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 09:40:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110511094000-wic7e3ki5987pyy6
Tags: 115
* Add Danish debconf translations, thanks Joe Dalton. (Closes: #619057)
* debian/README.Devel: Modernize a bit.
* pg_upgradecluster: In the "probin" fixup, drop the wrapping in
  encode()/decode(). This has been wrong all the time, as the "probin"
  column already is of "text" datatype, and now breaks with 9.1.
* Add support for 9.1:
  - Add 9.1 configuration method to pg_createcluster.
  - cleanpg: Stop 9.1 clusters.
  - t/040_upgrade.t: Don't call createlang for upgrades from 9.0 on, as
    PL/pgsql is enabled there by default.
  - t/050_encodings.t: Update for changed error message for invalid usage of
    \' in 9.1.
  - t/060_obsolete_confparams.t: Add full configuration for 9.0 to test the
    configuration update to 9.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
426
426
        print "Fixing hardcoded library paths for stored procedures...\n";
427
427
        (system $psql, '-h', $oldsocket, '-p', $info{'port'}, '-q', '-d',
428
428
            $db, '-c', "BEGIN; set transaction read write; \
429
 
                update pg_proc set probin = decode(replace(\
430
 
                replace(encode(probin, 'escape'), '/usr/lib/postgresql/lib', '\$libdir'), \
431
 
                '/usr/lib/postgresql/$version/lib', '\$libdir'), 'escape'); COMMIT") == 0 or
 
429
                update pg_proc set probin = replace(\
 
430
                replace(probin, '/usr/lib/postgresql/lib', '\$libdir'), \
 
431
                '/usr/lib/postgresql/$version/lib', '\$libdir'); COMMIT") == 0 or
432
432
            error 'Could not fix library paths';
433
433
 
434
434
        print 'Upgrading database ', $db, "...\n";