Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5fce30e

Browse files
committed
Fix some typos in event trigger docs
Discussion: https://postgr.es/m/CALj2ACWFUW4jX9EW7CLxbzSS%2Bb7b0Z%3DxKYrqzj2Rstc9MCEx7g%40mail.gmail.com Author: Bharath Rupireddy
1 parent 8be9317 commit 5fce30e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/src/sgml/event-trigger.sgml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
To prevent servers from becoming inaccessible, such triggers must avoid
5050
writing anything to the database when running on a standby.
5151
Also, it's recommended to avoid long-running queries in
52-
<literal>login</literal> event triggers. Notes that, for instance,
52+
<literal>login</literal> event triggers. Note that, for instance,
5353
canceling connection in <application>psql</application> wouldn't cancel
5454
the in-progress <literal>login</literal> trigger.
5555
</para>
@@ -1144,8 +1144,9 @@ typedef struct EventTriggerData
11441144
<listitem>
11451145
<para>
11461146
Describes the event for which the function is called, one of
1147-
<literal>"ddl_command_start"</literal>, <literal>"ddl_command_end"</literal>,
1148-
<literal>"sql_drop"</literal>, <literal>"table_rewrite"</literal>.
1147+
<literal>"login"</literal>, <literal>"ddl_command_start"</literal>,
1148+
<literal>"ddl_command_end"</literal>, <literal>"sql_drop"</literal>,
1149+
<literal>"table_rewrite"</literal>.
11491150
See <xref linkend="event-trigger-definition"/> for the meaning of these
11501151
events.
11511152
</para>
@@ -1203,8 +1204,9 @@ typedef struct EventTriggerData
12031204
This is the source code of the trigger function:
12041205
<programlisting><![CDATA[
12051206
#include "postgres.h"
1206-
#include "commands/event_trigger.h"
12071207

1208+
#include "commands/event_trigger.h"
1209+
#include "fmgr.h"
12081210

12091211
PG_MODULE_MAGIC;
12101212

0 commit comments

Comments
 (0)