|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.144 2007/01/31 20:56:16 momjian Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.145 2007/02/14 01:58:55 tgl Exp $ --> |
2 | 2 | <!--
|
3 | 3 | Documentation of the system catalogs, directed toward PostgreSQL developers
|
4 | 4 | -->
|
|
1870 | 1870 | <entry>If a foreign key, list of the referenced columns</entry>
|
1871 | 1871 | </row>
|
1872 | 1872 |
|
| 1873 | + <row> |
| 1874 | + <entry><structfield>conpfeqop</structfield></entry> |
| 1875 | + <entry><type>oid[]</type></entry> |
| 1876 | + <entry><literal><link linkend="catalog-pg-operator"><structname>pg_operator</structname></link>.oid</></entry> |
| 1877 | + <entry>If a foreign key, list of the equality operators for PK = FK comparisons</entry> |
| 1878 | + </row> |
| 1879 | + |
| 1880 | + <row> |
| 1881 | + <entry><structfield>conppeqop</structfield></entry> |
| 1882 | + <entry><type>oid[]</type></entry> |
| 1883 | + <entry><literal><link linkend="catalog-pg-operator"><structname>pg_operator</structname></link>.oid</></entry> |
| 1884 | + <entry>If a foreign key, list of the equality operators for PK = PK comparisons</entry> |
| 1885 | + </row> |
| 1886 | + |
| 1887 | + <row> |
| 1888 | + <entry><structfield>conffeqop</structfield></entry> |
| 1889 | + <entry><type>oid[]</type></entry> |
| 1890 | + <entry><literal><link linkend="catalog-pg-operator"><structname>pg_operator</structname></link>.oid</></entry> |
| 1891 | + <entry>If a foreign key, list of the equality operators for FK = FK comparisons</entry> |
| 1892 | + </row> |
| 1893 | + |
1873 | 1894 | <row>
|
1874 | 1895 | <entry><structfield>conbin</structfield></entry>
|
1875 | 1896 | <entry><type>text</type></entry>
|
|
1899 | 1920 | <note>
|
1900 | 1921 | <para>
|
1901 | 1922 | <literal>pg_class.relchecks</literal> needs to agree with the
|
1902 |
| - number of check-constraint entries found in this table for the |
1903 |
| - given relation. |
| 1923 | + number of check-constraint entries found in this table for each |
| 1924 | + relation. |
1904 | 1925 | </para>
|
1905 | 1926 | </note>
|
1906 | 1927 |
|
|
4166 | 4187 | <entry><structfield>tgisconstraint</structfield></entry>
|
4167 | 4188 | <entry><type>bool</type></entry>
|
4168 | 4189 | <entry></entry>
|
4169 |
| - <entry>True if trigger implements a referential integrity constraint</entry> |
| 4190 | + <entry>True if trigger is a <quote>constraint trigger</></entry> |
4170 | 4191 | </row>
|
4171 | 4192 |
|
4172 | 4193 | <row>
|
4173 | 4194 | <entry><structfield>tgconstrname</structfield></entry>
|
4174 | 4195 | <entry><type>name</type></entry>
|
4175 | 4196 | <entry></entry>
|
4176 |
| - <entry>Referential integrity constraint name</entry> |
| 4197 | + <entry>Constraint name, if a constraint trigger</entry> |
4177 | 4198 | </row>
|
4178 | 4199 |
|
4179 | 4200 | <row>
|
4180 | 4201 | <entry><structfield>tgconstrrelid</structfield></entry>
|
4181 | 4202 | <entry><type>oid</type></entry>
|
4182 | 4203 | <entry><literal><link linkend="catalog-pg-class"><structname>pg_class</structname></link>.oid</literal></entry>
|
4183 |
| - <entry>The table referenced by an referential integrity constraint</entry> |
| 4204 | + <entry>The table referenced by a referential integrity constraint</entry> |
| 4205 | + </row> |
| 4206 | + |
| 4207 | + <row> |
| 4208 | + <entry><structfield>tgconstraint</structfield></entry> |
| 4209 | + <entry><type>oid</type></entry> |
| 4210 | + <entry><literal><link linkend="catalog-pg-constraint"><structname>pg_constraint</structname></link>.oid</literal></entry> |
| 4211 | + <entry>The <structname>pg_constraint</> entry owning the trigger, if any</entry> |
4184 | 4212 | </row>
|
4185 | 4213 |
|
4186 | 4214 | <row>
|
4187 | 4215 | <entry><structfield>tgdeferrable</structfield></entry>
|
4188 | 4216 | <entry><type>bool</type></entry>
|
4189 | 4217 | <entry></entry>
|
4190 |
| - <entry>True if deferrable</entry> |
| 4218 | + <entry>True if constraint trigger is deferrable</entry> |
4191 | 4219 | </row>
|
4192 | 4220 |
|
4193 | 4221 | <row>
|
4194 | 4222 | <entry><structfield>tginitdeferred</structfield></entry>
|
4195 | 4223 | <entry><type>bool</type></entry>
|
4196 | 4224 | <entry></entry>
|
4197 |
| - <entry>True if initially deferred</entry> |
| 4225 | + <entry>True if constraint trigger is initially deferred</entry> |
4198 | 4226 | </row>
|
4199 | 4227 |
|
4200 | 4228 | <row>
|
|
4221 | 4249 | </tgroup>
|
4222 | 4250 | </table>
|
4223 | 4251 |
|
| 4252 | + <note> |
| 4253 | + <para> |
| 4254 | + When <structfield>tgconstraint</> is nonzero, |
| 4255 | + <structfield>tgisconstraint</> must be true, and |
| 4256 | + <structfield>tgconstrname</>, <structfield>tgconstrrelid</>, |
| 4257 | + <structfield>tgdeferrable</>, <structfield>tginitdeferred</> are redundant |
| 4258 | + with the referenced <structname>pg_constraint</> entry. The reason we |
| 4259 | + keep these fields is that we support <quote>stand-alone</> constraint |
| 4260 | + triggers with no corresponding <structname>pg_constraint</> entry. |
| 4261 | + </para> |
| 4262 | + </note> |
| 4263 | + |
4224 | 4264 | <note>
|
4225 | 4265 | <para>
|
4226 | 4266 | <literal>pg_class.reltriggers</literal> needs to agree with the
|
4227 |
| - number of triggers found in this table for the given relation. |
| 4267 | + number of triggers found in this table for each relation. |
4228 | 4268 | </para>
|
4229 | 4269 | </note>
|
4230 | 4270 |
|
|
0 commit comments