8 | | * **Backup** |
9 | | If you are doing this on the primary data server, first slap your own hand and then go work on a test bed machine. If that is unavailable, then do a full backup of your production database, and be certain you've configured Postgres 9 to run on two different ports (one for the drms database and another for the sums database). Make doubly sure that all your usual keyboard shortcuts and aliases are re-worked (perhaps in a new .profile or .login file) to reference the new database compiling environment. Better safe than sorry. |
| 8 | * **Backup and Migration** |
| 9 | If you are doing this on the primary data server, first slap your own hand and then go work on a test bed machine. If that is unavailable, then do a full backup of your production database, and be certain you've configured Postgres 9 to run on two different ports (one for the drms database and another for the sums database). Make doubly sure that all your usual keyboard shortcuts and aliases are re-worked (perhaps in a new .profile or .login file) to reference the new database compiling environment. If you are upgrading from an 8.4.x database, recall that you are undergoing a major version change and that involves "data migration". You may find that the migration tool provided by Postgres is unsuccessful. If so, you may need to migrate your data using a plain-text format data dump (with SQL "insert" commands). Check the Postgres website for migration options and do some testing before assuming the 9.2.x database is fully ready. Better safe than sorry. |
26 | | If you already have a prior version of Postgres installed and want to compile NetDRMS against v. 9.x instead, set your $PATH and $LD_LIBRARY_PATH variables properly to reflect the Postgres 9.2 paths. You might want to do this a .profile file and source it every time you log in to avoid confusing errata later. |
| 27 | If you already have a prior version of Postgres installed and want to compile NetDRMS against v. 9.x instead, set your $PATH and $LD_LIBRARY_PATH variables properly to reflect the Postgres 9.2 paths. You might want to do this a .profile file and source it every time you log in to avoid confusing errata later. Make sure you have set these environment variables before proceeding, with appropriate values for your location and machines: |
| 28 | {{{ |
| 29 | export JSOC_ROOT=/opt/netdrms7/source |
| 30 | export JSOC_DBHOST=machinename_localhost --whatever you're calling your database host in your .pgpass file |
| 31 | export JSOC_DBNAME=facilityname_drms |
| 32 | export JSOC_DBUSER=your_user |
| 33 | export JSOC_MACHINE=linux_x86_64 --assuming you're on that linux platform - yours may be different |
| 34 | export DRMS_DBPORT=5433 --author's test port number, default is 5432 |
| 35 | export SUMPGPORT=5435 --author's test port number, default is 5434 |
| 36 | export DRMS=$JSOC_ROOT |
| 37 | export SUMSSERVER=machinename_localhost |
| 38 | }}} |
| 39 | |