top of page
CerebroSQL

PostgreSQL:  

CREATE FOREIGN DATA WRAPPER

CREATE FOREIGN DATA WRAPPER name
[ HANDLER handler_function | NO HANDLER ]
[ VALIDATOR validator_function | NO VALIDATOR ]
[ OPTIONS ( option 'value' [, ... ] ) ]

Example

CREATE FOREIGN DATA WRAPPER dummy;
CREATE FOREIGN DATA WRAPPER file HANDLER file_fdw_handler;
CREATE FOREIGN DATA WRAPPER mywrapper
OPTIONS (debug 'true');

bottom of page