Header And Logo

PostgreSQL
| The world's most advanced open source database.

Defines | Typedefs | Functions | Variables

pg_database.h File Reference

#include "catalog/genbki.h"
Include dependency graph for pg_database.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DatabaseRelationId   1262
#define DatabaseRelation_Rowtype_Id   1248
#define Natts_pg_database   13
#define Anum_pg_database_datname   1
#define Anum_pg_database_datdba   2
#define Anum_pg_database_encoding   3
#define Anum_pg_database_datcollate   4
#define Anum_pg_database_datctype   5
#define Anum_pg_database_datistemplate   6
#define Anum_pg_database_datallowconn   7
#define Anum_pg_database_datconnlimit   8
#define Anum_pg_database_datlastsysoid   9
#define Anum_pg_database_datfrozenxid   10
#define Anum_pg_database_datminmxid   11
#define Anum_pg_database_dattablespace   12
#define Anum_pg_database_datacl   13
#define TemplateDbOid   1

Typedefs

typedef FormData_pg_databaseForm_pg_database

Functions

 CATALOG (pg_database, 1262) BKI_SHARED_RELATION BKI_ROWTYPE_OID(1248) BKI_SCHEMA_MACRO
 DATA (insert OID=1(template1 PGUID ENCODING"LC_COLLATE""LC_CTYPE"t t-1 0 0 1 1663 _null_))
 SHDESCR ("default template for new databases")

Variables

 FormData_pg_database

Define Documentation

#define Anum_pg_database_datacl   13
#define Anum_pg_database_datallowconn   7

Definition at line 70 of file pg_database.h.

Referenced by createdb().

#define Anum_pg_database_datcollate   4

Definition at line 67 of file pg_database.h.

Referenced by createdb().

#define Anum_pg_database_datconnlimit   8

Definition at line 71 of file pg_database.h.

Referenced by AlterDatabase(), and createdb().

#define Anum_pg_database_datctype   5

Definition at line 68 of file pg_database.h.

Referenced by createdb().

#define Anum_pg_database_datdba   2

Definition at line 65 of file pg_database.h.

Referenced by AlterDatabaseOwner(), and createdb().

#define Anum_pg_database_datfrozenxid   10

Definition at line 73 of file pg_database.h.

Referenced by createdb().

#define Anum_pg_database_datistemplate   6

Definition at line 69 of file pg_database.h.

Referenced by createdb().

#define Anum_pg_database_datlastsysoid   9

Definition at line 72 of file pg_database.h.

Referenced by createdb().

#define Anum_pg_database_datminmxid   11

Definition at line 74 of file pg_database.h.

Referenced by createdb().

#define Anum_pg_database_datname   1
#define Anum_pg_database_dattablespace   12

Definition at line 75 of file pg_database.h.

Referenced by createdb(), and movedb().

#define Anum_pg_database_encoding   3

Definition at line 66 of file pg_database.h.

Referenced by createdb().

#define DatabaseRelation_Rowtype_Id   1248

Definition at line 30 of file pg_database.h.

Referenced by RelationCacheInitializePhase2().

#define DatabaseRelationId   1262
#define Natts_pg_database   13

Definition at line 63 of file pg_database.h.

Referenced by RelationCacheInitializePhase2().

#define TemplateDbOid   1

Definition at line 80 of file pg_database.h.


Typedef Documentation

Definition at line 57 of file pg_database.h.


Function Documentation

CATALOG ( pg_database  ,
1262   
)

Definition at line 32 of file pg_database.h.

References encoding.

{
    NameData    datname;        /* database name */
    Oid         datdba;         /* owner of database */
    int32       encoding;       /* character encoding */
    NameData    datcollate;     /* LC_COLLATE setting */
    NameData    datctype;       /* LC_CTYPE setting */
    bool        datistemplate;  /* allowed as CREATE DATABASE template? */
    bool        datallowconn;   /* new connections allowed? */
    int32       datconnlimit;   /* max connections allowed (-1=no limit) */
    Oid         datlastsysoid;  /* highest OID to consider a system OID */
    TransactionId datfrozenxid; /* all Xids < this are frozen in this DB */
    TransactionId datminmxid;   /* all multixacts in the DB are >= this */
    Oid         dattablespace;  /* default table space for this DB */

#ifdef CATALOG_VARLEN           /* variable-length fields start here */
    aclitem     datacl[1];      /* access permissions */
#endif
} FormData_pg_database;

DATA ( insert  OID = 1(template1 PGUID ENCODING"LC_COLLATE""LC_CTYPE"t t-1 0 0 1 1663 _null_)  ) 
SHDESCR ( "default template for new databases"   ) 

Variable Documentation

Definition at line 50 of file pg_database.h.