Re: PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question - Mailing list pgsql-general

From Adrian Klaver
Subject Re: PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question
Date
Msg-id 56917293.8080503@aklaver.com
Whole thread Raw
In response to Re: PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question  (Deven Phillips <deven.phillips@gmail.com>)
List pgsql-general
On 01/08/2016 08:45 PM, Deven Phillips wrote:
> I DID get a foreign table to work using the following:
>
> CREATE FOREIGN TABLE customer (
> id BIGINT,
> name VARCHAR(150),
> parent_id BIGINT,
> oracle_id BIGINT,
> last_updated_time TIMESTAMP,
> created_time TIMESTAMP) SERVER mysql OPTIONS (dbname 'mydb', table_name
> 'customer');
>
> And I was subsequently able to query that table from PostgreSQL..
>
> I tried to add the "OPTIONS" to the IMPORT FOREIGN SCHEMA and got an
> error that "dbname" is not a valid parameter.

Got to thinking. What happens if you do CREATE SERVER and pass dbname as
an OPTIONS at that point, then do IMPORT FOREIGN SCHEMA using the server?

>
> Thanks,
>
> Deven
>


--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: "drum.lucas@gmail.com"
Date:
Subject: Re: New Slave - timeline ERROR
Next
From: bricklen
Date:
Subject: Re: New Slave - timeline ERROR