-
Notifications
You must be signed in to change notification settings - Fork 156
/
pglogical_dependency.h
36 lines (30 loc) · 1.13 KB
/
pglogical_dependency.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
/*-------------------------------------------------------------------------
*
* pglogical_dependency.h
* Dependency handling
*
* Copyright (c) 2015, PostgreSQL Global Development Group
*
* IDENTIFICATION
* pglogical_dependency.h
*
*-------------------------------------------------------------------------
*/
#ifndef PGLOGICAL_DEPENDENCY_H
#define PGLOGICAL_DEPENDENCY_H
extern void pglogical_recordDependencyOn(const ObjectAddress *depender,
const ObjectAddress *referenced,
DependencyType behavior);
extern void pglogical_recordMultipleDependencies(const ObjectAddress *depender,
const ObjectAddress *referenced,
int nreferenced,
DependencyType behavior);
extern void pglogical_recordDependencyOnSingleRelExpr(const ObjectAddress *depender,
Node *expr, Oid relId,
DependencyType behavior,
DependencyType self_behavior);
extern void pglogical_tryDropDependencies(const ObjectAddress *object,
DropBehavior behavior);
extern void pglogical_checkDependency(const ObjectAddress *object,
DropBehavior behavior);
#endif /* PGLOGICAL_DEPENDENCY_H */