projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c82d4e6
)
doc: Add missing include in example code
author
Peter Eisentraut
<peter_e@gmx.net>
Thu, 2 Feb 2017 21:49:46 +0000
(16:49 -0500)
committer
Peter 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
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/trigger.sgml
b/doc/src/sgml/trigger.sgml
index 22966c06dc0142e7e65a142ddcdc663327956883..8f724c86648e1ef2394012d241cd9ffd30c99057 100644
(file)
--- 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 */