1 /*-------------------------------------------------------------------------
4 * definition of the system "largeobject" relation (pg_largeobject)
5 * along with the relation's initial contents.
8 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
14 * the genbki.sh script reads this file and generates .bki
15 * information from the DATA() statements.
17 *-------------------------------------------------------------------------
19 #ifndef PG_LARGEOBJECT_H
20 #define PG_LARGEOBJECT_H
22 #include "catalog/genbki.h"
25 * pg_largeobject definition. cpp turns this into
26 * typedef struct FormData_pg_largeobject
29 #define LargeObjectRelationId 2613
31 CATALOG(pg_largeobject
,2613) BKI_WITHOUT_OIDS
33 Oid loid
; /* Identifier of large object */
34 int4 pageno
; /* Page number (starting from 0) */
35 bytea data
; /* Data for page (may be zero-length) */
36 } FormData_pg_largeobject
;
39 * Form_pg_largeobject corresponds to a pointer to a tuple with
40 * the format of pg_largeobject relation.
43 typedef FormData_pg_largeobject
*Form_pg_largeobject
;
46 * compiler constants for pg_largeobject
49 #define Natts_pg_largeobject 3
50 #define Anum_pg_largeobject_loid 1
51 #define Anum_pg_largeobject_pageno 2
52 #define Anum_pg_largeobject_data 3
54 extern void LargeObjectCreate(Oid loid
);
55 extern void LargeObjectDrop(Oid loid
);
56 extern bool LargeObjectExists(Oid loid
);
58 #endif /* PG_LARGEOBJECT_H */