Erro ao executar namedQuery do hibernate com postgres

Estou com problemas ao executar a seguinte namedQuery

 @NamedQuery(name = "Lote.loadAbertos", 
				query = "from Lote lt where TO_DATE(TO_CHAR(lt.dataHoraAbertura,'DD/MM/YYYY'), 'DD/MM/YYYY') < " +
	 					"TO_DATE(TO_CHAR(:data,'DD/MM/YYYY'), 'DD/MM/YYYY') and lt.dataHoraFechamento is null"),

540078 [http-80-2] WARN util.JDBCExceptionReporter - SQL Error: 0, SQLState: 42725
540078 [http-80-2] ERROR util.JDBCExceptionReporter - ERROR: function to_char(unknown, unknown) is not unique
Dica: Could not choose a best candidate function. You might need to add explicit type casts.
Posição: 533

já tentei informar o tipo com o seguinte código:

query.setParameter("data", param, Hibernate.DATE);

Já tentei com e sem o Hibernate.Date, se alguem tiver alguma sujestão por favor estou no aguardo.