Skip to content

Commit 11f2efd

Browse files
committed
Move pg_notify() details to a subsection within the NOTIFY reference page.
This allows the index to reference the pg_notify() subsection specifically, rather than Notes section of the NOTIFY reference page more generally. Fujii Masao
1 parent 91e01e2 commit 11f2efd

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

doc/src/sgml/ref/notify.sgml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/notify.sgml,v 1.34 2010/04/03 07:23:01 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/notify.sgml,v 1.35 2010/05/18 02:28:53 rhaas Exp $
33
PostgreSQL documentation
44
-->
55

@@ -152,18 +152,6 @@ NOTIFY <replaceable class="PARAMETER">channel</replaceable> [ , <replaceable cla
152152
<refsect1>
153153
<title>Notes</title>
154154

155-
<indexterm>
156-
<primary>pg_notify</primary>
157-
</indexterm>
158-
159-
<para>
160-
To send a notification you can also use the function
161-
<literal><function>pg_notify</function>(<type>text</type>,
162-
<type>text</type>)</literal>. The function takes the channel name as the
163-
first argument and the payload as the second. The function is much easier
164-
to use than the <command>NOTIFY</command> command if you need to work with
165-
non-constant channel names and payloads.
166-
</para>
167155
<para>
168156
There is a queue that holds notifications that have been sent but not
169157
yet processed by all listening sessions. If this queue becomes full,
@@ -180,6 +168,23 @@ NOTIFY <replaceable class="PARAMETER">channel</replaceable> [ , <replaceable cla
180168
A transaction that has executed <command>NOTIFY</command> cannot be
181169
prepared for two-phase commit.
182170
</para>
171+
172+
<refsect2>
173+
<title>pg_notify</title>
174+
175+
<indexterm>
176+
<primary>pg_notify</primary>
177+
</indexterm>
178+
179+
<para>
180+
To send a notification you can also use the function
181+
<literal><function>pg_notify</function>(<type>text</type>,
182+
<type>text</type>)</literal>. The function takes the channel name as the
183+
first argument and the payload as the second. The function is much easier
184+
to use than the <command>NOTIFY</command> command if you need to work with
185+
non-constant channel names and payloads.
186+
</para>
187+
</refsect2>
183188
</refsect1>
184189

185190
<refsect1>

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