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
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
Load or reload the shared library file.
LOAD 'filename'
This command loads the shared library file into the YMatrix database server address space. If the file has been loaded previously, uninstall it first. This command is mainly used to uninstall and reload shared library files that have been changed since the server first loaded. To use a shared library, you need to declare the functions in it using the CREATE FUNCTION command.
The method for specifying a file name is the same as the method for specifying a shared library name in CREATE FUNCTION. In particular, it may depend on the automatic addition of search paths and system standard shared library file name extensions.
Note that in the YMatrix database, the shared library file (.so file) must be located in the same path to each host in the YMatrix database array (master, segments, and mirrors).
Only database superusers can load shared library files.
filename
Loading shared library files:
// YMatrix 4.X path
LOAD '/usr/local/matrixdb/lib/myfuncs.so';
or
// YMatrix 5.X path
LOAD '/opt/ymatrix/matrixdb5/lib/myfuncs.so';
LOAD is a YMatrix database extension.