Ways to simplify postgresql partitioning code
A code and trigger technology, applied in the field of simplifying PostgreSQL partition code, can solve the problems that data cannot be inserted into the correct subtable and the probability of error is high
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0025] A method to simplify the PostgreSQL partition code, including the following steps:
[0026] Step 1, create the main table,
[0027] Step 2, create a child table,
[0028] Step 3, create a trigger function,
[0029] Step 4: Create a before trigger and pass in four string parameters to simplify the PostgreSQL partition code.
[0030] The implementation steps of the trigger function include the following sub-steps:
[0031] Sub-step 1, the trigger function receives four string parameters,
[0032] Sub-step 2, the trigger function opens a cursor, and traverses the normal column names and corresponding data types from the metatable pg_catalog.pg_attribute according to the relid of the trigger,
[0033] Sub-step 3, the trigger function executes the encapsulated column name, and the format of each encapsulated column name is column_name,
[0034] Sub-step 4, the trigger function executes the encapsulated value, the format of each encapsulated value is NEW|OLD.TABLE_NAME.C...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com