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-2019, 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; /* OID of the largeobject owner */ |
35 | |
36 | #ifdef CATALOG_VARLEN /* variable-length fields start here */ |
37 | aclitem lomacl[1]; /* access permissions */ |
38 | #endif |
39 | } FormData_pg_largeobject_metadata; |
40 | |
41 | /* ---------------- |
42 | * Form_pg_largeobject_metadata corresponds to a pointer to a tuple |
43 | * with the format of pg_largeobject_metadata relation. |
44 | * ---------------- |
45 | */ |
46 | typedef FormData_pg_largeobject_metadata *Form_pg_largeobject_metadata; |
47 | |
48 | #endif /* PG_LARGEOBJECT_METADATA_H */ |
49 | |