00001 /*------------------------------------------------------------------------- 00002 * 00003 * pg_inherits_fn.h 00004 * prototypes for functions in catalog/pg_inherits.c 00005 * 00006 * 00007 * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group 00008 * Portions Copyright (c) 1994, Regents of the University of California 00009 * 00010 * src/include/catalog/pg_inherits_fn.h 00011 * 00012 *------------------------------------------------------------------------- 00013 */ 00014 #ifndef PG_INHERITS_FN_H 00015 #define PG_INHERITS_FN_H 00016 00017 #include "nodes/pg_list.h" 00018 #include "storage/lock.h" 00019 00020 extern List *find_inheritance_children(Oid parentrelId, LOCKMODE lockmode); 00021 extern List *find_all_inheritors(Oid parentrelId, LOCKMODE lockmode, 00022 List **parents); 00023 extern bool has_subclass(Oid relationId); 00024 extern bool typeInheritsFrom(Oid subclassTypeId, Oid superclassTypeId); 00025 00026 #endif /* PG_INHERITS_FN_H */