Commit b251cf31 authored by Alvaro Herrera's avatar Alvaro Herrera

Fix trigger example code to match header changes

I should have done this in b93f5a56 but
didn't notice the problem at the time.

Per report from Marco Nenciarini
parent 438269eb
...@@ -573,7 +573,7 @@ typedef struct TriggerData ...@@ -573,7 +573,7 @@ typedef struct TriggerData
<listitem> <listitem>
<para> <para>
A pointer to a structure of type <structname>Trigger</>, A pointer to a structure of type <structname>Trigger</>,
defined in <filename>utils/rel.h</>: defined in <filename>utils/reltrigger.h</>:
<programlisting> <programlisting>
typedef struct Trigger typedef struct Trigger
...@@ -671,7 +671,8 @@ CREATE TABLE ttest ( ...@@ -671,7 +671,8 @@ CREATE TABLE ttest (
<programlisting><![CDATA[ <programlisting><![CDATA[
#include "postgres.h" #include "postgres.h"
#include "executor/spi.h" /* this is what you need to work with SPI */ #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 #ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC; PG_MODULE_MAGIC;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment