From aa09b9dcd57cbf18516332bf8310c12ef6f83715 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut <peter_e@gmx.net> Date: Thu, 2 Feb 2017 16:49:46 -0500 Subject: [PATCH] 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: mthrockmorton@hme.com --- doc/src/sgml/trigger.sgml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/src/sgml/trigger.sgml b/doc/src/sgml/trigger.sgml index 22966c06dc0..8f724c86648 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 */ -- GitLab