RES: Foreign PostgreSQL server

From: "Edson Carlos Ericksson Richter" <richter(at)simkorp(dot)com(dot)br>
To: "'Edson Carlos Ericksson Richter'" <richter(at)simkorp(dot)com(dot)br>, <pgsql-general(at)postgresql(dot)org>
Subject: RES: Foreign PostgreSQL server
Date: 2011-09-16 23:03:03
Message-ID: 007001cc74c4$cd61c310$68254930$@com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ok, managed to get the first part working:

---------------------------------------------------------------------------
create extension dblink;
CREATE FOREIGN DATA WRAPPER postgresql VALIDATOR postgresql_fdw_validator;
CREATE SERVER simfrete02 FOREIGN DATA WRAPPER postgresql OPTIONS (host
'127.0.0.1', dbname 'simfrete', port '5432');
CREATE FOREIGN TABLE emp02 (ID integer NOT NULL, NOME varchar(100) NOT NULL)
SERVER simfrete02;
select * from usuario join emp02 on usuario.empresa_id = emp02.id;
---------------------------------------------------------------------------
This error relates to the "select ..." part of the script above:

ERRO: foreign-data wrapper "postgresql" has no handler
********** Error **********
ERRO: foreign-data wrapper "postgresql" has no handler
SQL state: 55000

If I remove the "select ...", then the script runs without any error.

What then?

Thanks for your support,

Edson Richter

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2011-09-16 23:05:37 Re: Apparent Problem With NULL in Restoring pg_dump [SOLVED]
Previous Message Edson Carlos Ericksson Richter 2011-09-16 22:39:56 Foreign PostgreSQL server