| PostgreSQL 8.0.0 �����ĵ���PostgreSQL �й� ������ | ||||
|---|---|---|---|---|
| Prev | Fast Backward | Chapter 41. ϵͳ�� | Fast Forward | Next |
ϵͳ�� pg_constraint �洢���ϵļ��Լ����������ΨһԼ�������Լ���� ���ֶ�Լ������õ�����Դ���ÿ���ֶ�Լ������Ч��ijЩ��Լ������ ���� CREATE TABLE ��ȡ������Ϣ��
��������ļ��Լ���洢�����
Table 41-10. pg_constraint �ֶ�
| ���� | ���� | ���� | ���� |
|---|---|---|---|
| conname | name | Լ�����֣���һ����Ψһ�ģ��� | |
| connamespace | oid | pg_namespace.oid | �������Լ�������ֿռ�� OID |
| contype | char | c = ���Լ���� f = ���Լ���� p = ����Լ���� u = ΨһԼ�� | |
| condeferrable | boolean | ���Լ�������Ƴ��� | |
| condeferred | boolean | ȱʡʱ���Լ���Ƿ��Ƴٵģ� | |
| conrelid | oid | pg_class.oid | ���Լ�����ڵı�������DZ�Լ����Ϊ 0 |
| contypid | oid | pg_type.oid | ���Լ�����ڵ����������һ����Լ����Ϊ 0 |
| confrelid | oid | pg_class.oid | ������������Ϊ�ο��ı�����Ϊ 0 |
| confupdtype | char | ������¶������� | |
| confdeltype | char | ���ɾ���������� | |
| confmatchtype | char | ���ƥ������ | |
| conkey | int2[] | pg_attribute.attnum | ����DZ�Լ��������Լ�����Ƶ��ֶ��б� |
| confkey | int2[] | pg_attribute.attnum | �����һ��������Dzο����ֶε��б� |
| conbin | text | ����Ǽ��Լ�����Ǿ�������ʽ���ڲ���ʽ | |
| consrc | text | ����Ǽ��Լ�������DZ��ʽ������ɶ���ʽ |
ע��: consrc �ڱ����õĶ���ı�֮�ᱻ���£� ����������ֶε������ġ�������������ֶΣ�������û���ʹ�� pg_get_constraintdef() ����ȡһ�����Լ���Ķ��塣
ע��: pg_class.relchecks ��Ҫ���ڴ˱���Ϊ������ϵ�ҵ��ļ��Լ������Ŀһ�¡�