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

Commit731dfc7

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 parentfc995bf commit731dfc7

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

‎doc/src/sgml/datatype.sgml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4616,6 +4616,14 @@ SELECT * FROM pg_attribute
46164616
<primary>trigger</primary>
46174617
</indexterm>
46184618

4619+
<indexterm zone="datatype-pseudo">
4620+
<primary>event_trigger</primary>
4621+
</indexterm>
4622+
4623+
<indexterm zone="datatype-pseudo">
4624+
<primary>pg_ddl_command</primary>
4625+
</indexterm>
4626+
46194627
<indexterm zone="datatype-pseudo">
46204628
<primary>language_handler</primary>
46214629
</indexterm>
@@ -4729,14 +4737,24 @@ SELECT * FROM pg_attribute
47294737

47304738
<row>
47314739
<entry><type>record</></entry>
4732-
<entry>Identifies a function returning an unspecified row type.</entry>
4740+
<entry>Identifies a functiontaking orreturning an unspecified row type.</entry>
47334741
</row>
47344742

47354743
<row>
47364744
<entry><type>trigger</></entry>
47374745
<entry>A trigger function is declared to return <type>trigger.</></entry>
47384746
</row>
47394747

4748+
<row>
4749+
<entry><type>event_trigger</></entry>
4750+
<entry>An event trigger function is declared to return <type>event_trigger.</></entry>
4751+
</row>
4752+
4753+
<row>
4754+
<entry><type>pg_ddl_command</></entry>
4755+
<entry>Identifies a represention of DDL commands that is available to event triggers.</entry>
4756+
</row>
4757+
47404758
<row>
47414759
<entry><type>void</></entry>
47424760
<entry>Indicates that a function returns no value.</entry>
@@ -4759,10 +4777,11 @@ SELECT * FROM pg_attribute
47594777

47604778
<para>
47614779
Functions coded in procedural languages can use pseudo-types only as
4762-
allowed by their implementation languages. At presentthe procedural
4763-
languagesallforbid use of a pseudo-type as argument type, and allow
4780+
allowed by their implementation languages. At presentmost procedural
4781+
languages forbid use of a pseudo-type as an argument type, and allow
47644782
only <type>void</> and <type>record</> as a result type (plus
4765-
<type>trigger</> when the function is used as a trigger). Some also
4783+
<type>trigger</> or <type>event_trigger</> when the function is used
4784+
as a trigger or event trigger). Some also
47664785
support polymorphic functions using the types <type>anyelement</>,
47674786
<type>anyarray</>, <type>anynonarray</>, <type>anyenum</>, and
47684787
<type>anyrange</>.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp