Method for realizing event trigger in OpenGauss database
An event trigger and database technology, applied in the field of relational database management, can solve problems such as the inability to directly implement event triggers
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] Embodiment 1: a method for realizing event trigger in OpenGauss database, comprising the following steps:
[0061] S1: Add a metadata table to the OpenGauss database;
[0062] The metadata table is used to cache the meta information of the event trigger, and the metadata table of the event trigger can be used to quickly query the meta information of the event trigger.
[0063] S2: A hash table is built into each thread;
[0064] The hash table is used to store the mapping between the function ID of the event trigger and the function address of the event trigger. Through the hash table, the function address of the corresponding event trigger can be quickly obtained according to the function ID in the thread.
[0065] S3: Manage event triggers, including:
[0066] (1) Perform syntax parsing or semantic analysis on commands, including commands specifying the function body of the event trigger, commands specifying the operation type of the event trigger, and commands spec...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
