Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml,v diff -u -r1.11 -r1.12 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml 18 Feb 2004 14:43:06 -0000 1.11 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml 23 Feb 2004 01:11:42 -0000 1.12 @@ -454,7 +454,16 @@ Upgrading from PostGreSQL 7.2 to 7.3 - An OpenACS database created in PostGreSQL 7.2 will not work correctly in PostGreSQL 7.3. This is because 7.2 truncates function names to 31 characters, but 7.3 does not. This does not cause problems in 7.2, because truncation occurs both at function creation and at function calling, so they still match. But if you use a database created in 7.2 in 7.3, the function names in the database remain truncated but the function calls are not, and so they don't match. Also some functions use casting commands that no longer work in 7.3 and these functions must be recreated. + An OpenACS database created in PostGreSQL 7.2 will not + work correctly in PostGreSQL 7.3. This is because 7.2 truncates + function names to 31 characters, but 7.3 does not. This does + not cause problems in 7.2, because truncation occurs both at + function creation and at function calling, so they still match. + But if you use a database created in 7.2 in 7.3, the function + names in the database remain truncated but the function calls + are not, and so they don't match. Also some functions use + casting commands that no longer work in 7.3 and these functions + must be recreated. To upgrade an OpenACS site from PostGreSQL 7.2 to 7.3, first upgrade the kernel to 4.6.3. Then, dump the database, run the upgrade script /var/lib/aolserver/service0/bin/pg_7.2to7.3_upgrade_helper.pl on the dump file, and reply the dump. See Forum OpenACS Q&A: PG 7.2->7.3 upgrade gotcha?. Example: @@ -485,11 +494,31 @@ find . -type f -name "*sql" | xargs perl -p -i.tmp -e "s/\\wtimestamp[^t]/ timestamptz/g" + Create a new user for PostgreSQL 7.3.x, as per the + Postgres installation guide. Keep in mind that your + installation location is different, and your startup script + (/etc/init.d/postgres73 should be named differently. You + might even need to edit that file to make the paths correct) + + + Install PostgreSQL 7.3.x. Note that you PostgreSQL must listen on a different port in order to work - correctly. + correctly, so you'll need to edit the configuration file + (/usr/local/pgsql73/data/postgresql.conf) and + change the port (to 5433, say). create a second postgres + user to differentiate between the two postgres + installs. When you do ./configure, you'll need to include + --prefix=$HOME to ensure that it is installed in the + postgres73 user's home directory. + Change the path in + service0's .bashrc or + .bash_profile (or both) files to reflect the new postgres73 + user directory. + + Restore the database from dump as per the recovery instructions.