Calling function glossary_search with extended parameter set to 0 doesn't work correctly on postgreSQL.
At line 1070 in glossary/lib.php the variable $definitionsearch is set to 0
if ( !$extended ) {
$definitionsearch = "0";
}
but postgreSQL doesn't interpreter 0 as false (http://www.postgresql.org/docs/8.2/interactive/datatype-boolean.html)