YMatrix
Quick Start
Connecting
Benchmarks
Deployment
Data Usage
Manage Clusters
Upgrade
Global Maintenance
Expansion
Monitoring
Security
Best Practice
Technical Principles
Data Type
Storage Engine
Execution Engine
Streaming Engine(Domino)
MARS3 Index
Extension
Advanced Features
Advanced Query
Federal Query
Grafana
Backup and Restore
Disaster Recovery
Guide
Performance Tuning
Troubleshooting
Tools
Configuration Parameters
SQL Reference
Modify the definition of an external server.
ALTER SERVER server_name [ VERSION 'new_version' ]
[ OPTIONS ( [ ADD | SET | DROP ] option ['value'] [, ... ] ) ]
ALTER SERVER server_name OWNER TO new_owner
ALTER SERVER server_name RENAME TO new_name
ALTER SERVER Changes the definition of an external server. The first form of the command changes the version string or common options of the server. The YMatrix database requires at least one clause. The second and third forms of this command change the owner or name of the server.
To change the server, you must be the owner of the server. To change the owner, the user must:
Superusers automatically satisfy all these conditions.
server_name
new_version
OPTIONS ( [ ADD | SET | DROP ] option ['value'] [, ... ] )
OWNER TO new_owner
RENAME TO new_name
Change the definition of a server named foo by adding a connection option:
ALTER SERVER foo OPTIONS (host 'foo', dbname 'foodb');
Change the option named host for the server named foo and set the server version:
ALTER SERVER foo VERSION '9.1' OPTIONS (SET host 'baz');
ALTER SERVER complies with ISO/IEC 9075-9 (SQL/MED). The OWNER TO and RENAME options are extensions to the YMatrix database.