GS_LOGICAL_ATTRIBUTE
GS_LOGICAL_ATTRIBUTE系统表记录逻辑解码需要使用的关于表字段的信息。
字段名称 | 字段类型 | 说明 |
|---|---|---|
attrelid | oid | 包含该属性的RELATION OID。 |
attname | name | 属性名称。 |
atttypid | oid | 属性的数据类型的OID。 |
attlen | smallint | 属性的长度。 |
attnum | smallint | 表示属性的编号,用于唯一标识关系中的每个属性。 |
atthasdef | boolean | 属性是否有默认值。 |
csnmin | bigint | 插入元组时的CSN(提交序列号)。 |
csnmax | bigint | 更新或删除元组时的CSN。 |
createtime | timestamp with time zone | 插入元组的时间戳。 |
originid | integer | 元组的来源标识符。 |
dbnode | oid | 数据库OID。 |
attndims | integer | 如果是数组类型,则为声明的维数,否则为零。 |
attcacheoff | integer | 用于函数缓存属性在堆元组中的字节偏移。 |
attbyval | boolean | 表示属性是否是按值传递。 |
attstorage | "char" | 属性存储方式。 |
attalign | "char" | 表示属性的对齐方式。 |
attisdropped | boolean | 是否已删除(即逻辑上不可见)。 |
attinitdefval | bytea | 存储属性的默认值表达式。 |
attcollation | oid | 这个字段类型的PG_ATTRIBUTE中attcollation的复制。 |
atttypmod | integer | 这个字段类型的PG_ATTRIBUTE中atttypmod的复制。 |

