Online Documentation for SQL Manager for PostgreSQL

Creating/editing foreign data wrapper


Name

The name of the new/existing foreign data wrapper. The foreign data wrapper name must be unique within the database.

 

Foreign Data Wrapper Editor - Editing foreign data wrapper

 

Handler function

This is the name of a previously registered function that will be called to retrieve the execution functions for foreign tables. The handler function must take no arguments, and its return type must be fdw_handler.

 

It is possible to create a foreign-data wrapper with no handler function by checking the No handler option.

 

Validator function

This is the name of a previously registered function that will be called to check the generic options given to the foreign data wrapper, as well as options for foreign servers, user mappings and foreign tables using the foreign-data wrapper. The validator function must take two arguments: one of type text[], which will contain the array of options as stored in the system catalogs, and one of type oid, which will be the OID of the system catalog containing the options.

 

If the No validator option is checked, then options will not be checked at creation time.

 

Options

Use the grid with Name and Value columns to specify the options for the server. The allowed option names and values are specific to each foreign data wrapper and are validated using the foreign-data wrapper's validator function. Option names must be unique.