PostgreSQL Source Code  git master
pg_largeobject_metadata.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_largeobject_metadata.h
4  * definition of the "large object metadata" system catalog
5  * (pg_largeobject_metadata)
6  *
7  *
8  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
9  * Portions Copyright (c) 1994, Regents of the University of California
10  *
11  * src/include/catalog/pg_largeobject_metadata.h
12  *
13  * NOTES
14  * The Catalog.pm module reads this file and derives schema
15  * information.
16  *
17  *-------------------------------------------------------------------------
18  */
19 #ifndef PG_LARGEOBJECT_METADATA_H
20 #define PG_LARGEOBJECT_METADATA_H
21 
22 #include "catalog/genbki.h"
23 #include "catalog/pg_largeobject_metadata_d.h"
24 
25 /* ----------------
26  * pg_largeobject_metadata definition. cpp turns this into
27  * typedef struct FormData_pg_largeobject_metadata
28  * ----------------
29  */
30 CATALOG(pg_largeobject_metadata,2995,LargeObjectMetadataRelationId)
31 {
32  Oid oid; /* oid */
33 
34  Oid lomowner BKI_LOOKUP(pg_authid); /* OID of the largeobject
35  * owner */
36 
37 #ifdef CATALOG_VARLEN /* variable-length fields start here */
38  aclitem lomacl[1]; /* access permissions */
39 #endif
41 
42 /* ----------------
43  * Form_pg_largeobject_metadata corresponds to a pointer to a tuple
44  * with the format of pg_largeobject_metadata relation.
45  * ----------------
46  */
48 
49 DECLARE_UNIQUE_INDEX_PKEY(pg_largeobject_metadata_oid_index, 2996, LargeObjectMetadataOidIndexId, pg_largeobject_metadata, btree(oid oid_ops));
50 
51 #endif /* PG_LARGEOBJECT_METADATA_H */
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
FormData_pg_largeobject_metadata * Form_pg_largeobject_metadata
FormData_pg_largeobject_metadata
DECLARE_UNIQUE_INDEX_PKEY(pg_largeobject_metadata_oid_index, 2996, LargeObjectMetadataOidIndexId, pg_largeobject_metadata, btree(oid oid_ops))
CATALOG(pg_largeobject_metadata, 2995, LargeObjectMetadataRelationId)
unsigned int Oid
Definition: postgres_ext.h:31