summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2017-02-02 21:49:46 +0000
committerPeter Eisentraut2017-02-02 21:50:28 +0000
commitaa09b9dcd57cbf18516332bf8310c12ef6f83715 (patch)
tree9af4c25b635ccfdf6c844a475f4242ed92f8b885
parentc82d4e658eff287846fe6243966d110ff4ae9025 (diff)
doc: Add missing include in example code
It's not broken because the header file is included via other headers, but for better style we should be more explicit. Reported-by: [email protected]
-rw-r--r--doc/src/sgml/trigger.sgml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/src/sgml/trigger.sgml b/doc/src/sgml/trigger.sgml
index 22966c06dc..8f724c8664 100644
--- a/doc/src/sgml/trigger.sgml
+++ b/doc/src/sgml/trigger.sgml
@@ -705,6 +705,7 @@ CREATE TABLE ttest (
This is the source code of the trigger function:
<programlisting><![CDATA[
#include "postgres.h"
+#include "fmgr.h"
#include "executor/spi.h" /* this is what you need to work with SPI */
#include "commands/trigger.h" /* ... triggers ... */
#include "utils/rel.h" /* ... and relations */