aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2012-03-20 16:50:18 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2012-03-20 16:50:18 -0300
commitb251cf31936b4507ad8ba78f34a14f592c664f43 (patch)
treeba8d38c9b103f631d6d86a45a177a2f1ef325319
parent438269eb104446ff0c36d893cd6f01be8405d327 (diff)
downloadpostgresql-b251cf31936b4507ad8ba78f34a14f592c664f43.tar.gz
postgresql-b251cf31936b4507ad8ba78f34a14f592c664f43.zip
Fix trigger example code to match header changes
I should have done this in b93f5a5673b4bb09e14eb80fe28aa21fc20a6271 but didn't notice the problem at the time. Per report from Marco Nenciarini
-rw-r--r--doc/src/sgml/trigger.sgml5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/src/sgml/trigger.sgml b/doc/src/sgml/trigger.sgml
index a2ee28320d7..f579340e48f 100644
--- a/doc/src/sgml/trigger.sgml
+++ b/doc/src/sgml/trigger.sgml
@@ -573,7 +573,7 @@ typedef struct TriggerData
<listitem>
<para>
A pointer to a structure of type <structname>Trigger</>,
- defined in <filename>utils/rel.h</>:
+ defined in <filename>utils/reltrigger.h</>:
<programlisting>
typedef struct Trigger
@@ -671,7 +671,8 @@ CREATE TABLE ttest (
<programlisting><![CDATA[
#include "postgres.h"
#include "executor/spi.h" /* this is what you need to work with SPI */
-#include "commands/trigger.h" /* ... and triggers */
+#include "commands/trigger.h" /* ... triggers ... */
+#include "utils/rel.h" /* ... and relations */
#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;