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

Commite12c744

Browse files
committed
Update documentation about pseudo-types.
Tone down an overly strong statement about which pseudo-types PLs arelikely to allow. Add "event_trigger" to the list, as well as"pg_ddl_command" in 9.5/HEAD. Back-patch to 9.3 where event_triggerwas added.
1 parent7533d5d commite12c744

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

‎doc/src/sgml/datatype.sgml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4525,6 +4525,10 @@ SELECT * FROM pg_attribute
45254525
<primary>trigger</primary>
45264526
</indexterm>
45274527

4528+
<indexterm zone="datatype-pseudo">
4529+
<primary>event_trigger</primary>
4530+
</indexterm>
4531+
45284532
<indexterm zone="datatype-pseudo">
45294533
<primary>language_handler</primary>
45304534
</indexterm>
@@ -4629,14 +4633,19 @@ SELECT * FROM pg_attribute
46294633

46304634
<row>
46314635
<entry><type>record</></entry>
4632-
<entry>Identifies a function returning an unspecified row type.</entry>
4636+
<entry>Identifies a functiontaking orreturning an unspecified row type.</entry>
46334637
</row>
46344638

46354639
<row>
46364640
<entry><type>trigger</></entry>
46374641
<entry>A trigger function is declared to return <type>trigger.</></entry>
46384642
</row>
46394643

4644+
<row>
4645+
<entry><type>event_trigger</></entry>
4646+
<entry>An event trigger function is declared to return <type>event_trigger.</></entry>
4647+
</row>
4648+
46404649
<row>
46414650
<entry><type>void</></entry>
46424651
<entry>Indicates that a function returns no value.</entry>
@@ -4659,10 +4668,11 @@ SELECT * FROM pg_attribute
46594668

46604669
<para>
46614670
Functions coded in procedural languages can use pseudo-types only as
4662-
allowed by their implementation languages. At presentthe procedural
4663-
languagesallforbid use of a pseudo-type as argument type, and allow
4671+
allowed by their implementation languages. At presentmost procedural
4672+
languages forbid use of a pseudo-type as an argument type, and allow
46644673
only <type>void</> and <type>record</> as a result type (plus
4665-
<type>trigger</> when the function is used as a trigger). Some also
4674+
<type>trigger</> or <type>event_trigger</> when the function is used
4675+
as a trigger or event trigger). Some also
46664676
support polymorphic functions using the types <type>anyelement</>,
46674677
<type>anyarray</>, <type>anynonarray</>, <type>anyenum</>, and
46684678
<type>anyrange</>.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp