Quick onboard
Deployment
Data Modeling
Connection
Migration
Query
Operations and Maintenance
Common Maintenance
Partition
Backup and Restore
Expansion
Monitoring
Performance Tuning
Troubleshooting
Reference Guide
Tool guide
Data type
Storage Engine
Executor
Stream
DR (Disaster Recovery)
Configuration
Index
Extension
SQL Reference
Modify the definition of an external data wrapper.
ALTER FOREIGN DATA WRAPPER name
[ HANDLER handler_function | NO HANDLER ]
[ VALIDATOR validator_function | NO VALIDATOR ]
[ OPTIONS ( [ ADD | SET | DROP ] option ['value'] [, ... ] ) ]
ALTER FOREIGN DATA WRAPPER name OWNER TO new_owner
ALTER FOREIGN DATA WRAPPER name RENAME TO new_name
ALTER FOREIGN DATA WRAPPER Modify the definition of an external data wrapper. The first statement modifys the support function of the external data wrapper or a general option. YMatrix database requires only one option. The second and third statements modify the owner or name of the external data package.
Only superusers can modify external data packaging. In addition, only superusers can have external data packaging.
name
HANDLER handler_function
NO HANDLER
VALIDATOR validator_function
NO VALIDATOR
OPTIONS ( [ ADD | SET | DROP ] option ['value'] [, ... ] )
OWNER TO new_owner
RENAME TO new_name
Modify the definition of the external data wrapper named dbi, add a new option foo, and then remove the option named bar:
ALTER FOREIGN DATA WRAPPER dbi OPTIONS (ADD foo '1', DROP 'bar');
Modify the verification function named dbi to bob.myvalidator:
ALTER FOREIGN DATA WRAPPER dbi VALIDATOR bob.myvalidator;
ALTER FOREIGN DATA WRAPPER is adapted to ISO/IEC 9075-9 (SQL/MED), but the HANDLER, VALIDATOR, OWNER TO, and RENAME TO options are extensions to the YMatrix database.