~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to src/include/catalog/pg_inherits_fn.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * pg_inherits_fn.h
 
4
 *        prototypes for functions in catalog/pg_inherits.c
 
5
 *
 
6
 *
 
7
 * Portions Copyright (c) 1996-2011, 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 */