EZP-22103: postgres fix
EZP-22103: fix failure with SOLR < 4.1.0