The 'apps' database cluster contains databases to support internally-developed applications for the School. The cluster contains three databases:
Each application has a schema associated with it. We use schemas since we expect data in some applications may be used by others. It is expected that the set of schemas in each database will be more or less the same.
Applications will authenticate with a userid and local password. Developers and administrators connect using their WatIAM userids and a Postgres-specific password. The cluster is accessed using hostname postgres.odyssey.uwaterloo.ca
, port number 5432
. Connections are restricted to the UW campus network.
If you wish to make any schema change in a production database, you must do the following:
tg-dba
outlining what changes you want to make.
tg-dba
, dump the prod database and restore to the test database.
Follow the above procedures for the production database, since the whole point of schema changes on the test database is for a change to the production version!
It is expected that ongoing schema changes will happen on a development database. In this case, normal rules for change control in software development should apply. If you are a lone developer working in your own schema, you should be able to change at will. If you are working on something with others, you should at least notify others of your changes!
Access to the apps cluster is via connection to postgres.odyssey.uwaterloo.ca
port 5432.
Admin access can be gained by becoming user postgres
on that server; psql
will access the database without a password.
A manual backup can be performed via: pg_dumpall >dump.sql
A quick test of whether the database is working can be performed by accessing https://odyssey.uwaterloo.ca/sub - the RSG subscriptions application.
Restarting postgres can be done via: service postgresql restart