YMatrix
Quick Start
Simulate Time Series Scenarios
Standard Cluster Deployment
Data Modeling
Connecting to The database
Data Writing
Data Migration
Data Query
Scene Application Examples
Federal Query
Maintenance and Monitoring
Global Maintenance
Partition Maintenance
Backup and Restore
Cluster Expansion
Enable Mirroring
Resource Management
Security
Monitoring
Performance Tuning
Troubleshooting
Reference Guide
Tool Guide
Data Type
Storage Engine
Execution Engine
Stream Processing
DR (Disaster Recovery)
Configuration Parameters
Index
Extension
SQL Reference
FAQ
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.