]> granicus.if.org Git - postgresql/blob - src/include/catalog/pg_inherits_fn.h
Reorganize our CRC source files again.
[postgresql] / src / include / catalog / pg_inherits_fn.h
1 /*-------------------------------------------------------------------------
2  *
3  * pg_inherits_fn.h
4  *        prototypes for functions in catalog/pg_inherits.c
5  *
6  *
7  * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/catalog/pg_inherits_fn.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef PG_INHERITS_FN_H
15 #define PG_INHERITS_FN_H
16
17 #include "nodes/pg_list.h"
18 #include "storage/lock.h"
19
20 extern List *find_inheritance_children(Oid parentrelId, LOCKMODE lockmode);
21 extern List *find_all_inheritors(Oid parentrelId, LOCKMODE lockmode,
22                                         List **parents);
23 extern bool has_subclass(Oid relationId);
24 extern bool typeInheritsFrom(Oid subclassTypeId, Oid superclassTypeId);
25
26 #endif   /* PG_INHERITS_FN_H */