Skip to content

Commit bc29b06

Browse files
committed
Add mention of index on foreign key for frequently updated primary key
tables.
1 parent a4ee277 commit bc29b06

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

doc/src/sgml/ref/create_table.sgml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.50 2001/12/08 03:24:35 thomas Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.51 2002/01/03 06:26:22 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -437,6 +437,13 @@ and <replaceable class="PARAMETER">table_constraint</replaceable> is:
437437
</varlistentry>
438438
</variablelist>
439439
</para>
440+
<para>
441+
If primary key column is updated frequently, it may be wise to
442+
add an index to the <literal>REFERENCES</literal> column so that
443+
<literal>NO ACTION</literal> and <literal>CASCADE</literal>
444+
actions associated with the <literal>REFERENCES</literal>
445+
column can be more efficiently performed.
446+
</para>
440447

441448
</listitem>
442449
</varlistentry>
@@ -472,6 +479,8 @@ and <replaceable class="PARAMETER">table_constraint</replaceable> is:
472479
</listitem>
473480
</varlistentry>
474481
</variablelist>
482+
483+
475484
</refsect1>
476485

477486

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy