tsearch2 and ltree depend on the postgres version, so including these in the OpenACS repository opens another can of worms. In my opinion the best places to add these are
- at the end of the postgres compilation (compile both modules and add them to template1), or
- after createdb (make sure the modules are compiled and run both sql scripts against the new database)
Not sure, which binary distributions come with these database modules compiled.