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.6.2.6 -r1.6.2.7
--- openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml 15 Dec 2003 17:17:52 -0000 1.6.2.6
+++ openacs-4/packages/acs-core-docs/www/xml/install-guide/upgrade.xml 16 Dec 2003 08:05:09 -0000 1.6.2.7
@@ -46,8 +46,44 @@
+
+
+ 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.
+
+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:
+
+
+ Back up the database as per .
+
+
+ Run the upgrade script on the backup file.
+ [root@yourserver root]# su - service0
+[service0@yourserver service0]# cd /var/lib/aolserver/service0/bin
+[service0@yourserver bin]$ ./pg_7.2to7.3_upgrade_helper.pl \
+ ../database-backup/nightly.dmp \
+ ../database-backup/upgrade-7.3.dmp \
+ /var/lib/aolserver/service0
+==================================================================
+looking for function acs_object__check_object_ancest in oacs
+grep result: /var/lib/aolserver/aufrecht-dev/packages/acs-kernel/sql/postgresql/acs-objects-create.sql:create function acs_object__check_object_ancestors (integer,integer,integer)
+
+replacing acs_object__check_object_ancest with acs_object__check_object_ancestors
+
+(many lines omitted)
+[service0@yourserver bin]$
+
+
+
+ Use perl to replace timestamp with timestamptz.
+find . -type f -name "*sql" | xargs perl -p -i.tmp -e "s/timestamp with time zone/timestamptz/g"
+find . -type f -name "*sql" | xargs perl -p -i.tmp -e "s/\\wtimestamp[^t]/ timestamptz/g"
+ Restore the database from dump as per the recovery instructions.
+
+
+
- Upgrading 4.6.3 to 5.0
+ Upgrading OpenACS 4.6.3 to 5.0
Current working notes in Forum OpenACS Development: 4.6.3 upgrade to 5-HEAD: final results.