Header And Logo

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

pg_largeobject_metadata.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * pg_largeobject_metadata.h
00004  *    definition of the system "largeobject_metadata" relation (pg_largeobject_metadata)
00005  *    along with the relation's initial contents.
00006  *
00007  *
00008  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00009  * Portions Copyright (c) 1994, Regents of the University of California
00010  *
00011  * src/include/catalog/pg_largeobject_metadata.h
00012  *
00013  * NOTES
00014  *    the genbki.pl script reads this file and generates .bki
00015  *    information from the DATA() statements.
00016  *
00017  *-------------------------------------------------------------------------
00018  */
00019 #ifndef PG_LARGEOBJECT_METADATA_H
00020 #define PG_LARGEOBJECT_METADATA_H
00021 
00022 #include "catalog/genbki.h"
00023 
00024 /* ----------------
00025  *      pg_largeobject_metadata definition. cpp turns this into
00026  *      typedef struct FormData_pg_largeobject_metadata
00027  * ----------------
00028  */
00029 #define LargeObjectMetadataRelationId  2995
00030 
00031 CATALOG(pg_largeobject_metadata,2995)
00032 {
00033     Oid         lomowner;       /* OID of the largeobject owner */
00034 
00035 #ifdef CATALOG_VARLEN           /* variable-length fields start here */
00036     aclitem     lomacl[1];      /* access permissions */
00037 #endif
00038 } FormData_pg_largeobject_metadata;
00039 
00040 /* ----------------
00041  *      Form_pg_largeobject_metadata corresponds to a pointer to a tuple
00042  *      with the format of pg_largeobject_metadata relation.
00043  * ----------------
00044  */
00045 typedef FormData_pg_largeobject_metadata *Form_pg_largeobject_metadata;
00046 
00047 /* ----------------
00048  *      compiler constants for pg_largeobject_metadata
00049  * ----------------
00050  */
00051 #define Natts_pg_largeobject_metadata           2
00052 #define Anum_pg_largeobject_metadata_lomowner   1
00053 #define Anum_pg_largeobject_metadata_lomacl     2
00054 
00055 #endif   /* PG_LARGEOBJECT_METADATA_H */