These steps will assist you upgrading Postgres on Windows that has an older major version number of Postgres to the most recent version. The major version number is denoted by the first two digits.
If you have postgres 9.4.x (or older), the upgrade process involves some extra steps and can be done by Arts Management Support team if you are not comfortable following the steps below.
|
Remember, do not attempt to try this unless you just made a backup of your database. Preferably, you should also have restored that backup on another machine for safety, logged into it using Theatre Manager to prove that you can restore a backup and that it has 100% integrity.
|
Upgrading older Versions of Postgres
- Make sure that nobody is using Theatre Manager and that all second generation servers and classic web listeners are shut down
- Making a manual backup of the database using the DOS bat file C:\BoxOffice\BackupTM.bat and restoring it to a dummy database to make sure the backup will restore.
- Recording the PG_HBA.CONF and POSTGRESQL.CONF settings unique to this server
- stopping the server using the 'services' control panel.
- Un-installing Postgres by:
- going to Control Panel and
- looking for 'Add or Remove Programs' (XP) or 'Programs and Features' (or whatever Microsoft changed it to in the version of windows you have)
- Finding the installed version of Postgres that you have and 'uninstalling it'
- Deleting the old postgres server data directories. These will generally be in C:\Program Files\Postgres or C:\Program Files (X86)\Postgres - depending on if you have 32 or 64 bit versions.
- Use the download steps to obtain the latest version of the Postgres installer from the ArtsMan site.
- Changing the configuration parameters in PG_HBA.CONF and POSTGRESQL.CONF per the standard install instructions or you can match those that your recorded from the prior version's config files if you optimized anything. Note, you cannot simply copy the older versions of both files in the new install of postgres as parameters are sometimes added or removed.
- Restoring the old database by
- Creating a new database on the server that matches its prior name. (eg, if it was called 'MyTheatreDB', call it the same name.)
- Setting the owner to 'TheatreManager' and the Encoding to 'UTF8' (which is the default in all current versions of postgres)
- Importing the backup of the database made at the beginning of the instructions into the new database server.
- Starting Theatre Manager and attempting to log in. (if you cannot, make sure that the pg_hba.conf is correct)
- Setting up the backup job again and verifying that it works. Verifying it works means that you actually run it under the task scheduler and ensure that the backup file sizes are as expected.