-
Notifications
You must be signed in to change notification settings - Fork 15
/
spock_dependency.h
35 lines (29 loc) · 1.17 KB
/
spock_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
/*-------------------------------------------------------------------------
*
* spock_dependency.h
* Dependency handling
*
* Copyright (c) 2022-2023, pgEdge, Inc.
* Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, The Regents of the University of California
*
*-------------------------------------------------------------------------
*/
#ifndef SPOCK_DEPENDENCY_H
#define SPOCK_DEPENDENCY_H
extern void spock_recordDependencyOn(const ObjectAddress *depender,
const ObjectAddress *referenced,
DependencyType behavior);
extern void spock_recordMultipleDependencies(const ObjectAddress *depender,
const ObjectAddress *referenced,
int nreferenced,
DependencyType behavior);
extern void spock_recordDependencyOnSingleRelExpr(const ObjectAddress *depender,
Node *expr, Oid relId,
DependencyType behavior,
DependencyType self_behavior);
extern void spock_tryDropDependencies(const ObjectAddress *object,
DropBehavior behavior);
extern void spock_checkDependency(const ObjectAddress *object,
DropBehavior behavior);
#endif /* SPOCK_DEPENDENCY_H */