We tried to setup multiple OpenACS on the same Postgresql instance and got an error of
"Database operation "0or1row" failed (exception NSINT, "Query returned more than one row.")
when running the query -
select 1 from pg_class where relname = 'apm_package_versions'
in the file packages/acs-tcl/tcl/site-nodes-procs.tcl .
The pg_class is in the catalog schema and has the information for all object relations. It will return an error if more than one OpenACS is installed on the same Postgresql DB Instance.
Here are the list of files that we modified to include filters for the "current_user":
* acs-tcl/tcl/00-database-procs.tcl
* acs-tcl/tcl/site-nodes-procs.tcl
* tsearch2-driver/tcl/tsearch2-driver-install-procs.tcl
* xotcl-core/tcl/05-db-procs.tcl
* xowiki/tcl/xowiki-utility-procs.tcl
Is this the appropriate fix?