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.
|
|
|
|
*
|
|
|
|
*
|
2014-01-07 22:05:30 +01:00
|
|
|
* Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
|
2000-10-24 03:38:44 +02:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/include/catalog/pg_largeobject.h
|
2000-10-24 03:38:44 +02:00
|
|
|
*
|
|
|
|
* NOTES
|
2010-01-05 02:06:57 +01:00
|
|
|
* the genbki.pl script reads this file and generates .bki
|
2000-10-24 03:38:44 +02:00
|
|
|
* information from the DATA() statements.
|
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_LARGEOBJECT_H
|
|
|
|
#define PG_LARGEOBJECT_H
|
|
|
|
|
2008-03-27 04:57:34 +01:00
|
|
|
#include "catalog/genbki.h"
|
2000-10-24 03:38:44 +02:00
|
|
|
|
|
|
|
/* ----------------
|
2014-05-06 18:12:18 +02: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
|
|
|
* ----------------
|
|
|
|
*/
|
2005-04-14 03:38:22 +02:00
|
|
|
#define LargeObjectRelationId 2613
|
2000-10-24 03:38:44 +02:00
|
|
|
|
2005-04-14 03:38:22 +02:00
|
|
|
CATALOG(pg_largeobject,2613) BKI_WITHOUT_OIDS
|
2000-10-24 03:38:44 +02:00
|
|
|
{
|
|
|
|
Oid loid; /* Identifier of large object */
|
2012-06-25 00:51:46 +02:00
|
|
|
int32 pageno; /* Page number (starting from 0) */
|
2012-06-10 21:20:04 +02:00
|
|
|
|
2012-01-27 19:16:17 +01:00
|
|
|
/* data has variable length, but we allow direct access; see inv_api.c */
|
2000-10-24 03:38:44 +02:00
|
|
|
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
|
|
|
|
|
2010-02-26 03:01:40 +01:00
|
|
|
extern Oid 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 */
|