DESIGNER_SET_DESIGN_KSAFETY
Sets K-safety for a comprehensive design and stores the K-safety value in the DESIGNS
table. Database Designer ignores this function for incremental designs.
Behavior Type
Syntax
DESIGNER_SET_DESIGN_KSAFETY ( 'design‑name' [, k‑level ] )
Parameters
design‑name |
Name of the design for which you want to set the K-safety value, type VARCHAR. |
k‑level |
An integer between 0 and 2 that specifies the level of K-safety for the target design. This value must be compatible with the number of nodes in the database cluster:
If you omit this parameter, Vertica sets K‑safety for this design to 0 or 1, according to the number of nodes: 1 if the cluster contains ≥ 3 nodes, otherwise 0. If you are a DBADMIN user and k‑level differs from system K‑safety, Vertica changes system K‑safety as follows:
If you are a DBDUSER, Vertica ignores this parameter. |
Privileges
Non-superuser: design creator
Examples
The following example set K-safety for the VMART_DESIGN design to 1:
=> SELECT DESIGNER_SET_DESIGN_KSAFETY('VMART_DESIGN
', 1);