1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* pg_am.h--
|
1997-09-07 07:04:48 +02:00
|
|
|
* definition of the system "am" relation (pg_am)
|
|
|
|
* along with the relation's initial contents.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1998-12-15 13:47:01 +01:00
|
|
|
* $Id: pg_am.h,v 1.10 1998/12/15 12:46:49 vadim Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
* NOTES
|
1997-09-07 07:04:48 +02:00
|
|
|
* the genbki.sh script reads this file and generates .bki
|
|
|
|
* information from the DATA() statements.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
1997-09-07 07:04:48 +02:00
|
|
|
* XXX do NOT break up DATA() statements into multiple lines!
|
|
|
|
* the scripts are not as smart as you might think...
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_AM_H
|
|
|
|
#define PG_AM_H
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* postgres.h contains the system type definintions and the
|
|
|
|
* CATALOG(), BOOTSTRAP and DATA() sugar words so this file
|
|
|
|
* can be read by both genbki.sh and the C compiler.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_am definition. cpp turns this into
|
|
|
|
* typedef struct FormData_pg_am
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
*/
|
|
|
|
CATALOG(pg_am)
|
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
NameData amname;
|
1998-08-11 20:28:49 +02:00
|
|
|
int4 amowner;
|
1997-09-08 04:41:22 +02:00
|
|
|
char amkind;
|
|
|
|
int2 amstrategies;
|
|
|
|
int2 amsupport;
|
|
|
|
regproc amgettuple;
|
|
|
|
regproc aminsert;
|
|
|
|
regproc amdelete;
|
|
|
|
regproc amgetattr;
|
|
|
|
regproc amsetlock;
|
|
|
|
regproc amsettid;
|
|
|
|
regproc amfreetuple;
|
|
|
|
regproc ambeginscan;
|
|
|
|
regproc amrescan;
|
|
|
|
regproc amendscan;
|
|
|
|
regproc ammarkpos;
|
|
|
|
regproc amrestrpos;
|
|
|
|
regproc amopen;
|
|
|
|
regproc amclose;
|
|
|
|
regproc ambuild;
|
|
|
|
regproc amcreate;
|
|
|
|
regproc amdestroy;
|
1996-08-28 03:59:28 +02:00
|
|
|
} FormData_pg_am;
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* Form_pg_am corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_am relation.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef FormData_pg_am *Form_pg_am;
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* compiler constants for pg_am
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Natts_pg_am 22
|
|
|
|
#define Anum_pg_am_amname 1
|
|
|
|
#define Anum_pg_am_amowner 2
|
|
|
|
#define Anum_pg_am_amkind 3
|
|
|
|
#define Anum_pg_am_amstrategies 4
|
|
|
|
#define Anum_pg_am_amsupport 5
|
|
|
|
#define Anum_pg_am_amgettuple 6
|
|
|
|
#define Anum_pg_am_aminsert 7
|
|
|
|
#define Anum_pg_am_amdelete 8
|
|
|
|
#define Anum_pg_am_amgetattr 9
|
|
|
|
#define Anum_pg_am_amsetlock 10
|
|
|
|
#define Anum_pg_am_amsettid 11
|
|
|
|
#define Anum_pg_am_amfreetuple 12
|
|
|
|
#define Anum_pg_am_ambeginscan 13
|
|
|
|
#define Anum_pg_am_amrescan 14
|
|
|
|
#define Anum_pg_am_amendscan 15
|
|
|
|
#define Anum_pg_am_ammarkpos 16
|
|
|
|
#define Anum_pg_am_amrestrpos 17
|
|
|
|
#define Anum_pg_am_amopen 18
|
|
|
|
#define Anum_pg_am_amclose 19
|
|
|
|
#define Anum_pg_am_ambuild 20
|
|
|
|
#define Anum_pg_am_amcreate 21
|
|
|
|
#define Anum_pg_am_amdestroy 22
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* initial contents of pg_am
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
DATA(insert OID = 402 ( rtree PGUID "o" 8 3 rtgettuple rtinsert rtdelete - - - - rtbeginscan rtrescan rtendscan rtmarkpos rtrestrpos - - rtbuild - - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
1996-08-28 03:59:28 +02:00
|
|
|
DATA(insert OID = 403 ( btree PGUID "o" 5 1 btgettuple btinsert btdelete - - - - btbeginscan btrescan btendscan btmarkpos btrestrpos - - btbuild - - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
1996-08-28 03:59:28 +02:00
|
|
|
#define BTREE_AM_OID 403
|
1998-08-19 04:04:17 +02:00
|
|
|
DATA(insert OID = 405 ( hash PGUID "o" 1 1 hashgettuple hashinsert hashdelete - - - - hashbeginscan hashrescan hashendscan hashmarkpos hashrestrpos - - hashbuild - - ));
|
|
|
|
DESCR("");
|
1998-12-15 13:47:01 +01:00
|
|
|
#define HASH_AM_OID 405
|
1996-08-28 03:59:28 +02:00
|
|
|
DATA(insert OID = 783 ( gist PGUID "o" 100 7 gistgettuple gistinsert gistdelete - - - - gistbeginscan gistrescan gistendscan gistmarkpos gistrestrpos - - gistbuild - - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* PG_AM_H */
|