<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>Boa Tarde,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>Gostaria de saber como faço para criar um conexão com o postgres.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>segue o exemplo que fiz</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
 arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span><span style="font-weight: bold;">require(RPostgreSQL)</span><br style="font-weight: bold;"><span style="font-weight: bold;">drv <- dbDriver("PostgreSQL")</span><br style="font-weight: bold;"><span style="font-weight: bold;">con <- dbConnect(drv,user="consulta",password="idoctor@)!)",dbname="iDoctor_DW")</span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>mas essa conexão é local, gostaria de acessar o proprio servidor de uma outra máquina, como faço?<br></span></div><div> </div><div>Edson Lira<br>Estatístico<br>Manaus-Amazonas</div></div></body></html>