Native PostgreSQL Schema Script: postgres.sql - Simulations
This page documents schema objects parsed from config/sql/native/postgres.sql.
Region: Simulations
Simulation result objects, processed simulation objects, and simulation event mark references.
Tables
m_processed_object_event_mark
Stores event mark references for processed simulation objects.
No primary key is defined for this table.
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
required |
OID of the simulation result that owns the processed object. |
|
|
Object type of the owner. |
|
|
|
required |
Container ID of the processed object. |
|
|
||
|
|
required |
OID of the referenced event mark object. |
|
|
required |
Object type of the referenced event mark object. |
|
|
required |
Relation URI identifier of the event mark reference. |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
- |
m_processed_object_event_mark_default
Default partition for processed object event mark references.
No primary key is defined for this table.
This table is a partition of m_processed_object_event_mark. Columns are inherited from the partitioned table.
m_simulation_result
Stores simulation result objects.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#SimulationResultType
Inherits from: m_assignment_holder
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
Simulation result object identifier. |
|
|
||
|
|
Marks whether processed object data is stored in a dedicated partition. |
|
|
|
OID of the root task reference target. |
|
|
|
Object type of the root task reference target. |
|
|
|
Relation URI identifier of the root task reference. |
|
|
|
Time when the simulation started. |
|
|
|
Time when the simulation ended. |
Foreign keys
| Column | References |
|---|---|
|
|
|
m_simulation_result_processed_object
Stores objects processed by simulations and their before/after state.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#ProcessedObjectType
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the simulation result that owns the processed object. |
|
|
primary key, required |
Processed object container identifier unique within the simulation result. |
|
|
||
|
|
OID of the processed object. |
|
|
|
Object type of the processed object. |
|
|
|
Processed object name in original form. |
|
|
|
Processed object name in normalized form. |
|
|
|
Processing state of the object in the simulation. |
|
|
|
Metric identifiers associated with the processed object. |
|
|
|
Serialized full processed object value. |
|
|
|
Serialized object state before simulation processing. |
|
|
|
Serialized object state after simulation processing. |
|
|
|
Transaction identifier associated with the processed object. |
|
|
|
Identifier linking focus-related processed object records. |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
m_simulation_result_processed_object_default
Default partition for simulation processed objects.
No primary key is defined for this table.
This table is a partition of m_simulation_result_processed_object. Columns are inherited from the partitioned table.
Enum types
Functions and procedures
Functions and procedures implement repository-side database behavior.
m_simulation_result_create_partition
Creates a processed-object partition for a simulation result when partitioning is enabled.
Kind: function
m_simulation_result_delete_partition
Drops the processed-object partition when a partitioned simulation result is deleted.
Kind: function
Triggers
Triggers run routines automatically when table rows are inserted, updated, or deleted.