2000-10-24 03:38:44 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* pg_largeobject.h
|
|
|
|
* definition of the system "largeobject" relation (pg_largeobject)
|
|
|
|
* along with the relation's initial contents.
|
|
|
|
*
|
|
|
|
*
|
2004-08-29 06:13:13 +02:00
|
|
|
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
|
2000-10-24 03:38:44 +02:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2004-08-29 06:13:13 +02:00
|
|
|
* $PostgreSQL: pgsql/src/include/catalog/pg_largeobject.h,v 1.17 2004/08/29 04:13:05 momjian Exp $
|
2000-10-24 03:38:44 +02:00
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* the genbki.sh script reads this file and generates .bki
|
|
|
|
* information from the DATA() statements.
|
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_LARGEOBJECT_H
|
|
|
|
#define PG_LARGEOBJECT_H
|
|
|
|
|
|
|
|
/* ----------------
|
2003-03-10 23:28:22 +01:00
|
|
|
* postgres.h contains the system type definitions and the
|
2000-10-24 03:38:44 +02:00
|
|
|
* CATALOG(), BOOTSTRAP and DATA() sugar words so this file
|
|
|
|
* can be read by both genbki.sh and the C compiler.
|
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* ----------------
|
2001-03-22 05:01:46 +01:00
|
|
|
* pg_largeobject definition. cpp turns this into
|
2001-08-10 20:57:42 +02:00
|
|
|
* typedef struct FormData_pg_largeobject
|
2000-10-24 03:38:44 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
2001-08-10 20:57:42 +02:00
|
|
|
CATALOG(pg_largeobject) BKI_WITHOUT_OIDS
|
2000-10-24 03:38:44 +02:00
|
|
|
{
|
|
|
|
Oid loid; /* Identifier of large object */
|
|
|
|
int4 pageno; /* Page number (starting from 0) */
|
|
|
|
bytea data; /* Data for page (may be zero-length) */
|
|
|
|
} FormData_pg_largeobject;
|
|
|
|
|
|
|
|
/* ----------------
|
|
|
|
* Form_pg_largeobject corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_largeobject relation.
|
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
typedef FormData_pg_largeobject *Form_pg_largeobject;
|
|
|
|
|
|
|
|
/* ----------------
|
|
|
|
* compiler constants for pg_largeobject
|
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
#define Natts_pg_largeobject 3
|
|
|
|
#define Anum_pg_largeobject_loid 1
|
|
|
|
#define Anum_pg_largeobject_pageno 2
|
|
|
|
#define Anum_pg_largeobject_data 3
|
|
|
|
|
2001-08-10 22:52:25 +02:00
|
|
|
extern void LargeObjectCreate(Oid loid);
|
2000-10-24 03:38:44 +02:00
|
|
|
extern void LargeObjectDrop(Oid loid);
|
|
|
|
extern bool LargeObjectExists(Oid loid);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* PG_LARGEOBJECT_H */
|