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

Commit49077e8

Browse files
committed
Improvement to CREATE TRIGGER and catalog documentation.
Neil Conway
1 parente5bdd8d commit49077e8

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

‎doc/src/sgml/catalogs.sgml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
Documentation of the system catalogs, directed toward PostgreSQL developers
3-
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.63 2002/10/14 04:29:23 momjian Exp $
3+
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.64 2002/12/17 17:41:30 momjian Exp $
44
-->
55

66
<chapter id="catalogs">
@@ -1068,9 +1068,12 @@
10681068
<entry>relhasindex</entry>
10691069
<entry><type>bool</type></entry>
10701070
<entry></entry>
1071-
<entry>True if this is a table and it has (or recently had) any indexes.
1072-
This is set by CREATE INDEX, but not cleared immediately by DROP INDEX.
1073-
VACUUM clears relhasindex if it finds the table has no indexes.
1071+
<entry>
1072+
True if this is a table and it has (or recently had) any
1073+
indexes. This is set by <command>CREATE INDEX</command>, but
1074+
not cleared immediately by <command>DROP INDEX</command>.
1075+
<command>VACUUM</command> clears relhasindex if it finds the
1076+
table has no indexes.
10741077
</entry>
10751078
</row>
10761079

@@ -2049,11 +2052,11 @@
20492052
<entry><type>bool</type></entry>
20502053
<entry></entry>
20512054
<entry>
2052-
This is false for internal languages (such as SQL) and true for
2053-
user-defined languages. Currently,
2054-
<application>pg_dump</application> still uses this to determine
2055-
which languages need to be dumped, but this may be replaced by
2056-
a different mechanism sometime.
2055+
This is false for internal languages (such as
2056+
<acronym>SQL</acronym>) and true foruser-defined languages.
2057+
Currently,<application>pg_dump</application> still uses this
2058+
to determinewhich languages need to be dumped, but this may be
2059+
replaced bya different mechanism sometime.
20572060
</entry>
20582061
</row>
20592062

‎doc/src/sgml/ref/create_trigger.sgml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_trigger.sgml,v 1.30 2002/11/23 03:59:06 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_trigger.sgml,v 1.31 2002/12/17 17:41:30 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -21,9 +21,8 @@ PostgreSQL documentation
2121
<date>2000-03-25</date>
2222
</refsynopsisdivinfo>
2323
<synopsis>
24-
CREATE TRIGGER <replaceable class="PARAMETER">name</replaceable> {
25-
BEFORE | AFTER } { <replaceable class="PARAMETER">event</replaceable> [ OR ... ] }
26-
ON <replaceable class="PARAMETER">table</replaceable> [ FOR EACH { ROW | STATEMENT } ]
24+
CREATE TRIGGER <replaceable class="PARAMETER">name</replaceable> { BEFORE | AFTER } { <replaceable class="PARAMETER">event</replaceable> [ OR ... ] }
25+
ON <replaceable class="PARAMETER">table</replaceable> [ FOR [ EACH ] { ROW | STATEMENT } ]
2726
EXECUTE PROCEDURE <replaceable class="PARAMETER">func</replaceable> ( <replaceable class="PARAMETER">arguments</replaceable> )
2827
</synopsis>
2928

@@ -186,7 +185,9 @@ CREATE TRIGGER
186185
deleted tuple. In contrast, a trigger that executes <literal>FOR
187186
EACH STATEMENT</literal> of the specified operation only executes
188187
once for any given operation, regardless of how many rows it
189-
modifies.
188+
modifies (in particular, an operation that modifies zero rows will
189+
still result in the execution of any applicable <literal>FOR EACH
190+
STATEMENT</literal> triggers).
190191
</para>
191192

192193
<para>
@@ -330,6 +331,12 @@ CREATE TABLE distributors (
330331
time-of-creation order. <productname>PostgreSQL</productname>
331332
uses name order, which was judged more convenient to work with.
332333
</para>
334+
335+
<para>
336+
The ability to specify multiple actions for a single trigger
337+
using <literal>OR</literal> is a <productname>PostgreSQL</>
338+
extension of the SQL standard.
339+
</para>
333340
</listitem>
334341
</varlistentry>
335342
</variablelist>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp