diff options
author | Alexander Korotkov | 2024-02-11 22:33:51 +0000 |
---|---|---|
committer | Alexander Korotkov | 2024-02-11 22:52:25 +0000 |
commit | 5fce30e77fe133e1404167c13caaf7e0d1369295 (patch) | |
tree | eb0827feff8b9a30b49e066d03af681e84f9ba9f /doc/src | |
parent | 8be93177c46b0f6a29a7376229b7ee002066d5f8 (diff) |
Fix some typos in event trigger docs
Discussion: https://postgr.es/m/CALj2ACWFUW4jX9EW7CLxbzSS%2Bb7b0Z%3DxKYrqzj2Rstc9MCEx7g%40mail.gmail.com
Author: Bharath Rupireddy
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/event-trigger.sgml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/src/sgml/event-trigger.sgml b/doc/src/sgml/event-trigger.sgml index a76bd844257..23dbb804819 100644 --- a/doc/src/sgml/event-trigger.sgml +++ b/doc/src/sgml/event-trigger.sgml @@ -49,7 +49,7 @@ To prevent servers from becoming inaccessible, such triggers must avoid writing anything to the database when running on a standby. 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 the in-progress <literal>login</literal> trigger. </para> @@ -1144,8 +1144,9 @@ typedef struct EventTriggerData <listitem> <para> Describes the event for which the function is called, one of - <literal>"ddl_command_start"</literal>, <literal>"ddl_command_end"</literal>, - <literal>"sql_drop"</literal>, <literal>"table_rewrite"</literal>. + <literal>"login"</literal>, <literal>"ddl_command_start"</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 events. </para> @@ -1203,8 +1204,9 @@ typedef struct EventTriggerData This is the source code of the trigger function: <programlisting><![CDATA[ #include "postgres.h" -#include "commands/event_trigger.h" +#include "commands/event_trigger.h" +#include "fmgr.h" PG_MODULE_MAGIC; |