当前位置:网站首页>Gbase 8C system table PG_ constraint
Gbase 8C system table PG_ constraint
2022-07-03 02:22:00 【Dazhuang twelve】
pg_constraint System tables store check constraints on tables 、 Primary key 、 Unique constraints and foreign key constraints .
name | type | quote | describe |
oid | oid | Row identifier ( Hidden attribute , Must be explicitly selected to display ) | |
conname | name | Constraint name ( It doesn't need to be the only one !) | |
connamespace | oid | pg_namespace.oid | The name of the namespace containing this constraint OID |
contype | char | c = Check constraint , f = Foreign key constraints , p = Primary key constraint , u = Unique constraint , t = Constraint trigger , x = Exclusive constraints | |
condeferrable | bool | Whether the constraint can be delayed ? | |
condeferred | bool | Whether the constraint is delayed by default ? | |
convalidated | bool | Whether this constraint has been verified ? Currently, foreign keys and check constraints can only be false | |
conrelid | oid | pg_class.oid | The table where the constraint is located , If it is not a table constraint, it is 0 |
contypid | oid | pg_type.oid | The domain in which the constraint resides , If it is not a domain constraint, it is 0 |
conindid | oid | pg_class.oid | If the constraint is unique 、 Primary key 、 Foreign keys or exclusive constraints , This column represents the index that supports this constraint , Otherwise 0 |
confrelid | oid | pg_class.oid | If this constraint is a foreign key constraint , This column is the referenced table , Otherwise 0 |
confupdtype | char | Foreign key update action code : a = No action , r = Limit , c = cascade , n = empty , d = Set to default | |
confdeltype | char | Foreign key deletion action code : a = No action , r = Limit , c = cascade , n = empty , d = Set to default | |
confmatchtype | char | Foreign key matching type : f = Completely , p = part , s = Simple | |
conislocal | bool | This constraint is defined locally in the relationship . Note that a constraint can be both locally defined and inherited . | |
coninhcount | int4 | Number of direct inheritance ancestors for this constraint . A non-zero constraint on this column cannot be deleted or renamed . | |
connoinherit | bool | True means that the constraint is defined locally in the relationship . It is a non inheritable constraint . | |
conkey | int2[] | pg_attribute.attnum | If it is a table constraint ( Include foreign keys but not constraint triggers ), This column is a list of constrained Columns |
confkey | int2[] | pg_attribute.attnum | If it's a foreign key , This column is a list of referenced Columns |
conpfeqop | oid[] | pg_operator.oid | If it's a foreign key , This column is used for PK = FK List of equivalent operators for comparison |
conppeqop | oid[] | pg_operator.oid | If it's a foreign key , This column is used for PK = PK List of equivalent operators for comparison |
conffeqop | oid[] | pg_operator.oid | If it's a foreign key , This column is used for FK = FK List of equivalent operators for comparison |
conexclop | oid[] | pg_operator.oid | If it's an exclusive constraint , This column is a list of non exclusive operators |
conbin | pg_node_tree | If it is a check constraint , This column is an internal representation of the expression | |
consrc | text | If it is a check constraint , This column is a human readable representation of the expression |
Be careful :consrc It will not be updated after the referenced object changes , It does not track field name changes . Instead of relying on this field , It's better to use pg_get_constraintdef() To extract the definition of a check constraint .
pg_class.relchecks It needs to be consistent with the number of check constraints found on this table for a given relationship .
边栏推荐
- Tongda OA V12 process center
- Iptables layer 4 forwarding
- 人脸识别6- face_recognition_py-基于OpenCV使用Haar级联与dlib库进行人脸检测及实时跟踪
- Current situation and future of Web3 in various countries
- Detailed introduction to the usage of Nacos configuration center
- QT qcombobox add qccheckbox (drop-down list box insert check box, including source code + comments)
- Cfdiv2 Fixed Point Guessing - (2 points for Interval answer)
- Awk from entry to burial (1) awk first meeting
- Oauth2.0 authentication, login and access "/oauth/token", how to get the value of request header authorization (basictoken)???
- 去除网页滚动条方法以及内外边距
猜你喜欢

Tongda OA V12 process center

Oauth2.0 authentication, login and access "/oauth/token", how to get the value of request header authorization (basictoken)???

Memory pool (understand the process of new developing space from the perspective of kernel)

通达OA 首页门户工作台
![[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)](/img/66/0fda43da0d36fc0c9277ca86ece252.jpg)
[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)
![[shutter] top navigation bar implementation (scaffold | defaulttabcontroller | tabbar | tab | tabbarview)](/img/f1/b17631639cb4f0f58007b86476bcc2.gif)
[shutter] top navigation bar implementation (scaffold | defaulttabcontroller | tabbar | tab | tabbarview)

Trial setup and use of idea GoLand development tool
【ROS进阶篇】第六讲 ROS中的录制与回放(rosbag)

SPI机制

Detailed analysis of micro service component sentinel (hystrix)
随机推荐
How to find summer technical internship in junior year? Are you looking for a large company or a small company for technical internship?
Codeforces Round #418 (Div. 2) D. An overnight dance in discotheque
各国Web3现状与未来
What are the key points often asked in the redis interview
Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol
Qt之QComboBox添加QCheckBox(下拉列表框插入复选框,含源码+注释)
Face recognition 6-face_ recognition_ Py based on OpenCV, face detection and real-time tracking using Haar cascade and Dlib Library
[shutter] shutter debugging (debugging control related functions | breakpoint management | code operation control)
【CodeForces】CF1338A - Powered Addition【二进制】
Su Shimin: 25 principles of work and life
GBase 8c触发器(三)
8 free, HD, copyright free video material download websites are recommended
Oauth2.0 authentication, login and access "/oauth/token", how to get the value of request header authorization (basictoken)???
Y54. Chapter III kubernetes from introduction to mastery -- ingress (27)
Servlet中数据传到JSP页面使用el表达式${}无法显示问题
leetcode961. Find the elements repeated N times in the array with length 2n
GBase 8c触发器(二)
require.context
GBase 8c系统表-pg_amproc
udp接收队列以及多次初始化的测试