1 /*-------------------------------------------------------------------------
4 * prototypes for functions in catalog/pg_inherits.c
7 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
12 *-------------------------------------------------------------------------
14 #ifndef PG_INHERITS_FN_H
15 #define PG_INHERITS_FN_H
17 #include "nodes/pg_list.h"
18 #include "storage/lock.h"
20 extern List
*find_inheritance_children(Oid parentrelId
, LOCKMODE lockmode
);
21 extern List
*find_all_inheritors(Oid parentrelId
, LOCKMODE lockmode
);
22 extern bool has_subclass(Oid relationId
);
23 extern bool typeInheritsFrom(Oid subclassTypeId
, Oid superclassTypeId
);
25 #endif /* PG_INHERITS_FN_H */