http://cvs.openacs.org/cvs/openacs-4/packages/forums/tcl/forums-sc-procs-postgresql.xql?rev=1.1.1.1&view=markup
It looks like when search was added for Oracle the technique was changed to query for the forums messages.