1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01: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
|
|
|
*
|
|
|
|
*
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
2000-04-12 19:17:23 +02:00
|
|
|
* $Id: pg_am.h,v 1.15 2000/04/12 17:16:27 momjian 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)
|
|
|
|
{
|
2000-02-17 04:40:02 +01:00
|
|
|
NameData amname; /* access method name */
|
|
|
|
int4 amowner; /* usesysid of creator */
|
2000-04-12 19:17:23 +02:00
|
|
|
int2 amstrategies; /* total NUMBER of strategies by which we
|
|
|
|
* can traverse/search this AM */
|
|
|
|
int2 amsupport; /* total NUMBER of support functions that
|
|
|
|
* this AM uses */
|
|
|
|
int2 amorderstrategy;/* if this AM has a sort order, the
|
|
|
|
* strategy number of the sort operator.
|
|
|
|
* Zero if AM is not ordered. */
|
2000-02-17 04:40:02 +01:00
|
|
|
regproc amgettuple; /* "next valid tuple" function */
|
|
|
|
regproc aminsert; /* "insert this tuple" function */
|
|
|
|
regproc amdelete; /* "delete this tuple" function */
|
|
|
|
regproc amgetattr; /* - deprecated */
|
|
|
|
regproc amsetlock; /* - deprecated */
|
|
|
|
regproc amsettid; /* - deprecated */
|
|
|
|
regproc amfreetuple; /* - deprecated */
|
|
|
|
regproc ambeginscan; /* "start new scan" function */
|
|
|
|
regproc amrescan; /* "restart this scan" function */
|
|
|
|
regproc amendscan; /* "end this scan" function */
|
|
|
|
regproc ammarkpos; /* "mark current scan position" function */
|
|
|
|
regproc amrestrpos; /* "restore marked scan position" function */
|
|
|
|
regproc amopen; /* - deprecated */
|
|
|
|
regproc amclose; /* - deprecated */
|
|
|
|
regproc ambuild; /* "build new index" function */
|
|
|
|
regproc amcreate; /* - deprecated */
|
|
|
|
regproc amdestroy; /* - deprecated */
|
2000-04-12 19:17:23 +02:00
|
|
|
regproc amcostestimate; /* estimate cost of an indexscan */
|
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
|
|
|
* ----------------
|
|
|
|
*/
|
2000-01-23 00:50:30 +01:00
|
|
|
#define Natts_pg_am 23
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Anum_pg_am_amname 1
|
|
|
|
#define Anum_pg_am_amowner 2
|
2000-02-17 04:40:02 +01:00
|
|
|
#define Anum_pg_am_amstrategies 3
|
|
|
|
#define Anum_pg_am_amsupport 4
|
|
|
|
#define Anum_pg_am_amorderstrategy 5
|
1997-09-07 07:04:48 +02:00
|
|
|
#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
|
2000-01-23 00:50:30 +01:00
|
|
|
#define Anum_pg_am_amcostestimate 23
|
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
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
2000-02-17 04:40:02 +01:00
|
|
|
DATA(insert OID = 402 ( rtree PGUID 8 3 0 rtgettuple rtinsert rtdelete - - - - rtbeginscan rtrescan rtendscan rtmarkpos rtrestrpos - - rtbuild - - rtcostestimate ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-02-17 04:40:02 +01:00
|
|
|
DATA(insert OID = 403 ( btree PGUID 5 1 1 btgettuple btinsert btdelete - - - - btbeginscan btrescan btendscan btmarkpos btrestrpos - - btbuild - - btcostestimate ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
1996-08-28 03:59:28 +02:00
|
|
|
#define BTREE_AM_OID 403
|
2000-02-17 04:40:02 +01:00
|
|
|
DATA(insert OID = 405 ( hash PGUID 1 1 0 hashgettuple hashinsert hashdelete - - - - hashbeginscan hashrescan hashendscan hashmarkpos hashrestrpos - - hashbuild - - hashcostestimate ));
|
1998-08-19 04:04:17 +02:00
|
|
|
DESCR("");
|
1998-12-15 13:47:01 +01:00
|
|
|
#define HASH_AM_OID 405
|
2000-02-17 04:40:02 +01:00
|
|
|
DATA(insert OID = 783 ( gist PGUID 100 7 0 gistgettuple gistinsert gistdelete - - - - gistbeginscan gistrescan gistendscan gistmarkpos gistrestrpos - - gistbuild - - gistcostestimate ));
|
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 */
|