PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_inherits_fn.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_inherits_fn.h
4  * prototypes for functions in catalog/pg_inherits.c
5  *
6  *
7  * Portions Copyright (c) 1996-2017, 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 has_superclass(Oid relationId);
25 extern bool typeInheritsFrom(Oid subclassTypeId, Oid superclassTypeId);
26 
27 #endif /* PG_INHERITS_FN_H */
List * find_inheritance_children(Oid parentrelId, LOCKMODE lockmode)
Definition: pg_inherits.c:57
int LOCKMODE
Definition: lockdefs.h:26
bool has_subclass(Oid relationId)
Definition: pg_inherits.c:262
bool has_superclass(Oid relationId)
Definition: pg_inherits.c:282
unsigned int Oid
Definition: postgres_ext.h:31
List * find_all_inheritors(Oid parentrelId, LOCKMODE lockmode, List **parents)
Definition: pg_inherits.c:167
bool typeInheritsFrom(Oid subclassTypeId, Oid superclassTypeId)
Definition: pg_inherits.c:306
Definition: pg_list.h:45