ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
ProvenanceRelationKey Struct Reference

One PRIMARY-KEY or NOT-NULL-UNIQUE key on a relation. More...

#include "provsql_utils.h"

Public Attributes

uint16 col_n
AttrNumber cols [PROVSQL_KEY_CACHE_MAX_KEY_COLS]

Detailed Description

One PRIMARY-KEY or NOT-NULL-UNIQUE key on a relation.

col_n is the number of valid entries in cols (in pg_index.indkey order, i.e. column position in the key, not pg_attribute.attnum order). All columns are NOT NULL by construction: PRIMARY KEY enforces this implicitly, and UNIQUE constraints are admitted only when pg_attribute.attnotnull is true for every constituent column (the ยง2 soundness trap on nullable UNIQUE).

Definition at line 416 of file provsql_utils.h.

Member Data Documentation

◆ col_n

uint16 ProvenanceRelationKey::col_n

Definition at line 417 of file provsql_utils.h.

◆ cols

AttrNumber ProvenanceRelationKey::cols[PROVSQL_KEY_CACHE_MAX_KEY_COLS]

Definition at line 418 of file provsql_utils.h.


The documentation for this struct was generated from the following file: