The following kinds of C functions can make allocations from the database server shared memory:
A C UDR has access to the following types of shared memory for dynamic allocations: user memory and named memory.
A constructor function allocates its DataBlade API data type structure in user memory. The constructor can allocate a particular data type structure with a specified memory duration (Table 93 through Table 95) or the current memory duration (Table 97).
The DataBlade API provides the memory-management functions in Table 98 for the dynamic allocation of database server shared memory.
These DataBlade API memory-management functions in Table 98 work correctly with the transaction management and memory reclamation of the database server. In particular, they provide the following advantages:
These functions establish a memory duration for the memory they allocate. When this memory duration expires, the database server automatically marks the memory for reclamation. For more information, see Choosing the Memory Duration.