mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Fix some typos in event trigger docs
Discussion: https://postgr.es/m/CALj2ACWFUW4jX9EW7CLxbzSS%2Bb7b0Z%3DxKYrqzj2Rstc9MCEx7g%40mail.gmail.com Author: Bharath Rupireddy
This commit is contained in:
@ -49,7 +49,7 @@
|
|||||||
To prevent servers from becoming inaccessible, such triggers must avoid
|
To prevent servers from becoming inaccessible, such triggers must avoid
|
||||||
writing anything to the database when running on a standby.
|
writing anything to the database when running on a standby.
|
||||||
Also, it's recommended to avoid long-running queries in
|
Also, it's recommended to avoid long-running queries in
|
||||||
<literal>login</literal> event triggers. Notes that, for instance,
|
<literal>login</literal> event triggers. Note that, for instance,
|
||||||
canceling connection in <application>psql</application> wouldn't cancel
|
canceling connection in <application>psql</application> wouldn't cancel
|
||||||
the in-progress <literal>login</literal> trigger.
|
the in-progress <literal>login</literal> trigger.
|
||||||
</para>
|
</para>
|
||||||
@ -1144,8 +1144,9 @@ typedef struct EventTriggerData
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Describes the event for which the function is called, one of
|
Describes the event for which the function is called, one of
|
||||||
<literal>"ddl_command_start"</literal>, <literal>"ddl_command_end"</literal>,
|
<literal>"login"</literal>, <literal>"ddl_command_start"</literal>,
|
||||||
<literal>"sql_drop"</literal>, <literal>"table_rewrite"</literal>.
|
<literal>"ddl_command_end"</literal>, <literal>"sql_drop"</literal>,
|
||||||
|
<literal>"table_rewrite"</literal>.
|
||||||
See <xref linkend="event-trigger-definition"/> for the meaning of these
|
See <xref linkend="event-trigger-definition"/> for the meaning of these
|
||||||
events.
|
events.
|
||||||
</para>
|
</para>
|
||||||
@ -1203,8 +1204,9 @@ typedef struct EventTriggerData
|
|||||||
This is the source code of the trigger function:
|
This is the source code of the trigger function:
|
||||||
<programlisting><![CDATA[
|
<programlisting><![CDATA[
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
#include "commands/event_trigger.h"
|
|
||||||
|
|
||||||
|
#include "commands/event_trigger.h"
|
||||||
|
#include "fmgr.h"
|
||||||
|
|
||||||
PG_MODULE_MAGIC;
|
PG_MODULE_MAGIC;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user