-
Notifications
You must be signed in to change notification settings - Fork 6
/
events.h
46 lines (32 loc) · 1.16 KB
/
events.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*-------------------------------------------------------------------------
*
* events.h
* Declarations for event-handling functions.
*
*
* pg_schema_triggers/events.h
*
*-------------------------------------------------------------------------
*/
#ifndef SCHEMA_TRIGGERS_EVENTS_H
#define SCHEMA_TRIGGERS_EVENTS_H
#include "postgres.h"
#include "fmgr.h"
void relation_create_event(Oid rel);
Datum relation_create_eventinfo(PG_FUNCTION_ARGS);
void relation_alter_event(Oid rel);
Datum relation_alter_eventinfo(PG_FUNCTION_ARGS);
void relation_drop_event(Oid rel);
Datum relation_drop_eventinfo(PG_FUNCTION_ARGS);
void column_add_event(Oid rel, int16 attnum);
Datum column_add_eventinfo(PG_FUNCTION_ARGS);
void column_alter_event(Oid rel, int16 attnum);
Datum column_alter_eventinfo(PG_FUNCTION_ARGS);
void column_drop_event(Oid rel, int16 attnum);
Datum column_drop_eventinfo(PG_FUNCTION_ARGS);
void trigger_create_event(Oid trigoid, bool is_internal);
Datum trigger_create_eventinfo(PG_FUNCTION_ARGS);
void trigger_alter_event(Oid trigoid);
void trigger_drop_event(Oid trigoid);
Datum trigger_drop_eventinfo(PG_FUNCTION_ARGS);
#endif /* SCHEMA_TRIGGERS_EVENTS_H */