PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_largeobject.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * pg_largeobject.h
4 * definition of the "large object" system catalog (pg_largeobject)
5 *
6 *
7 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/catalog/pg_largeobject.h
11 *
12 * NOTES
13 * The Catalog.pm module reads this file and derives schema
14 * information.
15 *
16 *-------------------------------------------------------------------------
17 */
18#ifndef PG_LARGEOBJECT_H
19#define PG_LARGEOBJECT_H
20
21#include "catalog/genbki.h"
22#include "catalog/pg_largeobject_d.h" /* IWYU pragma: export */
23#include "utils/snapshot.h"
24
25/* ----------------
26 * pg_largeobject definition. cpp turns this into
27 * typedef struct FormData_pg_largeobject
28 * ----------------
29 */
31
33{
34 Oid loid BKI_LOOKUP(pg_largeobject_metadata); /* Identifier of large
35 * object */
36 int32 pageno; /* Page number (starting from 0) */
37
38 /* data has variable length, but we allow direct access; see inv_api.c */
39 bytea data BKI_FORCE_NOT_NULL; /* Data for page (may be
40 * zero-length) */
42
44
45/* ----------------
46 * Form_pg_largeobject corresponds to a pointer to a tuple with
47 * the format of pg_largeobject relation.
48 * ----------------
49 */
51
53
55extern void LargeObjectDrop(Oid loid);
56extern bool LargeObjectExists(Oid loid);
57extern bool LargeObjectExistsWithSnapshot(Oid loid, Snapshot snapshot);
58
59#endif /* PG_LARGEOBJECT_H */
int32_t int32
Definition c.h:554
#define BEGIN_CATALOG_STRUCT
Definition genbki.h:37
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
Definition genbki.h:105
#define BKI_LOOKUP(catalog)
Definition genbki.h:65
#define END_CATALOG_STRUCT
Definition genbki.h:38
#define BKI_FORCE_NOT_NULL
Definition genbki.h:52
#define CATALOG(name, oid, oidmacro)
Definition genbki.h:42
const void * data
void LargeObjectDrop(Oid loid)
bool LargeObjectExistsWithSnapshot(Oid loid, Snapshot snapshot)
FormData_pg_largeobject
bool LargeObjectExists(Oid loid)
Oid LargeObjectCreate(Oid loid)
END_CATALOG_STRUCT typedef FormData_pg_largeobject * Form_pg_largeobject
unsigned int Oid
static int fb(int x)
Definition c.h:718