Re: PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question
Дата
Msg-id 56917293.8080503@aklaver.com
обсуждение исходный текст
Ответ на Re: PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question  (Deven Phillips <deven.phillips@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "drum.lucas@gmail.com"
Дата:
Сообщение: Re: New Slave - timeline ERROR
Следующее
От: bricklen
Дата:
Сообщение: Re: New Slave - timeline ERROR