Open dumbuzz opened 8 years ago
Trying to set column_name in create foreign table via:
CREATE FOREIGN TABLE exchange.test ("id" integer OPTIONS (column_name 'key'), "name" character varying(300) ) SERVER mysql_srv OPTIONS (dbname 'test', table_name 'test');
and get error:
ERROR: invalid option "column_name" HINT: Valid options in this context are: <none>
Is there any way to create foreign table in postgresql with column_name which differs from mysql column_name?
You could write a view for the foreign table where you can specify column names, until this OPTION is not supported.
Trying to set column_name in create foreign table via:
and get error:
Is there any way to create foreign table in postgresql with column_name which differs from mysql column_name?