]> granicus.if.org Git - postgresql/commitdiff
doc: Add missing include in example code
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 2 Feb 2017 21:49:46 +0000 (16:49 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 2 Feb 2017 21:50:28 +0000 (16:50 -0500)
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

index 22966c06dc0142e7e65a142ddcdc663327956883..8f724c86648e1ef2394012d241cd9ffd30c99057 100644 (file)
@@ -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 */