Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v diff -u -N -r1.504 -r1.505 --- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 1 Feb 2018 21:56:57 -0000 1.504 +++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 8 Feb 2018 17:35:44 -0000 1.505 @@ -106,6 +106,24 @@ ::xo::db::CrAttribute create instance_attributes \ -sqltype long_text \ -default "" + # + # To enable hstore for xowiki/xowf, make sure, hstore is + # installed in your PostgreSQL installation, e.g. via + # + # $PGBIN/psql -U nsadmin -d oacs-head -tAc "create extension hstore" + # + # .... and add a index for the hstore key to xowiki_page_instance: + # + # CREATE INDEX hidx ON xowiki_page_instance using GIST(hkey); + # + # ... and set the parameter "use_hstore" to 1. Then the + # condition [::xo::dc has_hstore] will be true. + # + if {[::xo::dc has_hstore]} { + ::xo::db::CrAttribute create hkey \ + -sqltype hstore \ + -default "" + } } \ -form ::xowiki::PageInstanceForm \ -edit_form ::xowiki::PageInstanceEditForm