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

« back to all changes in this revision

Viewing changes to t/040_upgrade.t

  • 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:
42
42
    'check next sequence value';
43
43
 
44
44
# create stored procedures
45
 
is_program_out 'postgres', 'createlang plpgsql test', 0, '', 'createlang plpgsql test';
 
45
if ($MAJORS[0] lt '9.0') {
 
46
    is_program_out 'postgres', 'createlang plpgsql test', 0, '', 'createlang plpgsql test';
 
47
} else {
 
48
    pass '>= 9.0 enables PL/pgsql by default';
 
49
    pass '...';
 
50
}
46
51
is_program_out 'nobody', 'psql test -c "CREATE FUNCTION inc2(integer) RETURNS integer LANGUAGE plpgsql AS \'BEGIN RETURN \$1 + 2; END;\';"',
47
52
    0, "CREATE FUNCTION\n", 'create function inc2';
48
53
is_program_out 'postgres', "psql -c \"update pg_proc set probin = '/usr/lib/postgresql/$MAJORS[0]/lib/plpgsql.so' where proname = 'plpgsql_call_handler';\" test",