mirror of
https://github.com/postgres/postgres.git
synced 2025-06-19 04:21:08 +03:00
Fix trigger example code to match header changes
I should have done this in b93f5a5673
but
didn't notice the problem at the time.
Per report from Marco Nenciarini
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user