Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc29b06

Browse files
committed
Add mention of index on foreign key for frequently updated primary key
tables.
1 parenta4ee277 commitbc29b06

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)

[8]ページ先頭

©2009-2025 Movatter.jp