1 /*-------------------------------------------------------------------------
4 * prototypes for functions in lib/catalog/heap.c
7 * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $Id: heap.h,v 1.37 2001/08/10 18:57:39 tgl Exp $
12 *-------------------------------------------------------------------------
17 #include "catalog/pg_attribute.h"
18 #include "utils/rel.h"
20 typedef struct RawColumnDefault
22 AttrNumber attnum; /* attribute to attach default to */
23 Node *raw_default; /* default value (untransformed parse
27 extern Oid RelnameFindRelid(const char *relname);
29 extern Relation heap_create(char *relname, TupleDesc tupDesc,
30 bool istemp, bool storage_create,
31 bool allow_system_table_mods);
33 extern void heap_storage_create(Relation rel);
35 extern Oid heap_create_with_catalog(char *relname, TupleDesc tupdesc,
36 char relkind, bool relhasoids, bool istemp,
37 bool allow_system_table_mods);
39 extern void heap_drop_with_catalog(const char *relname,
40 bool allow_system_table_mods);
42 extern void heap_truncate(char *relname);
44 extern void AddRelationRawConstraints(Relation rel,
46 List *rawConstraints);
48 extern int RemoveCheckConstraint(Relation rel, const char *constrName, bool inh);
51 extern Form_pg_attribute SystemAttributeDefinition(AttrNumber attno,