Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[08001]: Client unable to establish connection: 7 ERROR: could not establish connection DETAIL: FATAL: permission denied for database "aluguel" DETAIL: User does not have CONNECT privilege. CONTEXT: SQL statement "SELECT dblink_connect('cn', 'dbname=aluguel hostaddr=' || trim(servidor_ip) || ' port=' || servidor_porta || ' user=webservice password=fui_eu_que_fiz_divinha')" PL/pgSQL function fn_pessoa_id_pelo_dominio(character varying) line 12 at PERFORM SQL statement "select fn_pessoa_id_pelo_dominio(dominio_in)" PL/pgSQL function pessoa_softwares(character varying,integer) line 23 at SQL statement' in /home/web.meusimoveis.net/public_html/classes/gerais.php:112 Stack trace: #0 /home/web.meusimoveis.net/public_html/classes/gerais.php(112): PDOStatement->execute() #1 /home/web.meusimoveis.net/public_html/classes/gerais.php(137): Gerais::CodigosDeAutenticacaoPeloDominio('barretoimoveisg...') #2 /home/web.meusimoveis.net/public_html/autoload.php(34): in /home/web.meusimoveis.net/public_html/classes/gerais.php on line 112