Closed Bug 757276 Opened 12 years ago Closed 12 years ago

make setupdb_app.py support both pgsql 9.0 and 9.1

Categories

(Socorro :: Database, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rhelmer, Assigned: rhelmer)

References

Details

(Whiteboard: [qa-])

Per bug 757274 we want to switch to 9.0, but we need to load the "citext" extension differently depending on the version, and we should support both versions during the transition period. I am planning to detect the server version and either load the citext.sql (for 9.0) or execute "CREATE EXTENSION citext FROM unpackaged". While I am in there, I am thinking the script should prompt for an unknown version e.g.: "WARNING: socorro has not been tested on PostgreSQL 8.4, run anyway? [y/N]"
Assignee: nobody → rhelmer
Status: NEW → ASSIGNED
Target Milestone: --- → 11
Target Milestone: 11 → 12
Target Milestone: 12 → 13
Target Milestone: 13 → 14
r? https://github.com/mozilla/socorro/pull/664 Note that the current schema dump checked in won't work with 9.1 as-is, but this code would load it correctly if it was a psql 9.1-compatible schema dump :)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Commits pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/d8d7fa31f254fd2888d401498ba1a3be87d3a9f1 bug 757276 - only load citext if --no-schema is specified https://github.com/mozilla/socorro/commit/397e8b0ed547e2c80a7ad43c1b665eeb35db0c7a Merge pull request #666 from rhelmer/master bug 757276 - only load citext if --no-schema is specified
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.