PostgreSQL: ERRO: o operador não existe: número inteiro = variação de caracteres

Aqui estou tentando criar a exibição como mostrado abaixo no exemplo:

Exemplo:

 create view view1
 as 
 select table1.col1,table2.col1,table3.col3
 from table1 
 inner join
 table2 
 inner join 
 table3
 on 
 table1.col4 = table2.col5 
 /* Here col4 of table1 is of "integer" type and col5 of table2 is of type "varchar" */
 /* ERROR: operator does not exist: integer = character varying */
 ....;

Nota: A mesma consulta executada no servidor sql, mas obtendo o erro acima no postgreSQL.

questionAnswers(1)

yourAnswerToTheQuestion