~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-updates

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * pg_namespace.h
 
4
 *        definition of the system "namespace" relation (pg_namespace)
 
5
 *        along with the relation's initial contents.
 
6
 *
 
7
 *
 
8
 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
 
9
 * Portions Copyright (c) 1994, Regents of the University of California
 
10
 *
 
11
 * $PostgreSQL$
 
12
 *
 
13
 * NOTES
 
14
 *        the genbki.sh script reads this file and generates .bki
 
15
 *        information from the DATA() statements.
 
16
 *
 
17
 *-------------------------------------------------------------------------
 
18
 */
 
19
#ifndef PG_NAMESPACE_H
 
20
#define PG_NAMESPACE_H
 
21
 
 
22
#include "catalog/genbki.h"
 
23
 
 
24
/* ----------------------------------------------------------------
 
25
 *              pg_namespace definition.
 
26
 *
 
27
 *              cpp turns this into typedef struct FormData_pg_namespace
 
28
 *
 
29
 *      nspname                         name of the namespace
 
30
 *      nspowner                        owner (creator) of the namespace
 
31
 *      nspacl                          access privilege list
 
32
 * ----------------------------------------------------------------
 
33
 */
 
34
#define NamespaceRelationId  2615
 
35
 
 
36
CATALOG(pg_namespace,2615)
 
37
{
 
38
        NameData        nspname;
 
39
        Oid                     nspowner;
 
40
        aclitem         nspacl[1];              /* VARIABLE LENGTH FIELD */
 
41
} FormData_pg_namespace;
 
42
 
 
43
/* ----------------
 
44
 *              Form_pg_namespace corresponds to a pointer to a tuple with
 
45
 *              the format of pg_namespace relation.
 
46
 * ----------------
 
47
 */
 
48
typedef FormData_pg_namespace *Form_pg_namespace;
 
49
 
 
50
/* ----------------
 
51
 *              compiler constants for pg_namespace
 
52
 * ----------------
 
53
 */
 
54
 
 
55
#define Natts_pg_namespace                              3
 
56
#define Anum_pg_namespace_nspname               1
 
57
#define Anum_pg_namespace_nspowner              2
 
58
#define Anum_pg_namespace_nspacl                3
 
59
 
 
60
 
 
61
/* ----------------
 
62
 * initial contents of pg_namespace
 
63
 * ---------------
 
64
 */
 
65
 
 
66
DATA(insert OID = 11 ( "pg_catalog" PGUID _null_ ));
 
67
DESCR("system catalog schema");
 
68
#define PG_CATALOG_NAMESPACE 11
 
69
DATA(insert OID = 99 ( "pg_toast" PGUID _null_ ));
 
70
DESCR("reserved schema for TOAST tables");
 
71
#define PG_TOAST_NAMESPACE 99
 
72
DATA(insert OID = 2200 ( "public" PGUID _null_ ));
 
73
DESCR("standard public schema");
 
74
#define PG_PUBLIC_NAMESPACE 2200
 
75
 
 
76
 
 
77
/*
 
78
 * prototypes for functions in pg_namespace.c
 
79
 */
 
80
extern Oid      NamespaceCreate(const char *nspName, Oid ownerId);
 
81
 
 
82
#endif   /* PG_NAMESPACE_H */