]> granicus.if.org Git - postgresql/commitdiff
Add mention of index on foreign key for frequently updated primary key
authorBruce Momjian <bruce@momjian.us>
Thu, 3 Jan 2002 06:26:22 +0000 (06:26 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 3 Jan 2002 06:26:22 +0000 (06:26 +0000)
tables.

doc/src/sgml/ref/create_table.sgml

index ec264dbb118cf350ae71239e318829aaa7e66d80..87ebda032efaaee0d694226280e378be5e04aa2d 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.50 2001/12/08 03:24:35 thomas Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.51 2002/01/03 06:26:22 momjian Exp $
 PostgreSQL documentation
 -->
 
@@ -437,6 +437,13 @@ and <replaceable class="PARAMETER">table_constraint</replaceable> is:
        </varlistentry>
       </variablelist>
      </para>
+     <para>
+      If primary key column is updated frequently, it may be wise to
+      add an index to the <literal>REFERENCES</literal> column so that
+      <literal>NO ACTION</literal> and <literal>CASCADE</literal>
+      actions associated with the <literal>REFERENCES</literal>
+      column can be more efficiently performed.
+     </para>
 
     </listitem>
    </varlistentry>
@@ -472,6 +479,8 @@ and <replaceable class="PARAMETER">table_constraint</replaceable> is:
     </listitem>
    </varlistentry>
   </variablelist>
+
+
  </refsect1>