1 /*-------------------------------------------------------------------------
4 * definition of the system "am" relation (pg_am)
5 * along with the relation's initial contents.
8 * Copyright (c) 1994, Regents of the University of California
10 * $Id: pg_am.h,v 1.2 1996/10/31 09:47:07 scrappy Exp $
13 * the genbki.sh script reads this file and generates .bki
14 * information from the DATA() statements.
16 * XXX do NOT break up DATA() statements into multiple lines!
17 * the scripts are not as smart as you might think...
19 *-------------------------------------------------------------------------
25 * postgres.h contains the system type definintions and the
26 * CATALOG(), BOOTSTRAP and DATA() sugar words so this file
27 * can be read by both genbki.sh and the C compiler.
32 * pg_am definition. cpp turns this into
33 * typedef struct FormData_pg_am
62 * Form_pg_am corresponds to a pointer to a tuple with
63 * the format of pg_am relation.
66 typedef FormData_pg_am *Form_pg_am;
69 * compiler constants for pg_am
72 #define Natts_pg_am 22
73 #define Anum_pg_am_amname 1
74 #define Anum_pg_am_amowner 2
75 #define Anum_pg_am_amkind 3
76 #define Anum_pg_am_amstrategies 4
77 #define Anum_pg_am_amsupport 5
78 #define Anum_pg_am_amgettuple 6
79 #define Anum_pg_am_aminsert 7
80 #define Anum_pg_am_amdelete 8
81 #define Anum_pg_am_amgetattr 9
82 #define Anum_pg_am_amsetlock 10
83 #define Anum_pg_am_amsettid 11
84 #define Anum_pg_am_amfreetuple 12
85 #define Anum_pg_am_ambeginscan 13
86 #define Anum_pg_am_amrescan 14
87 #define Anum_pg_am_amendscan 15
88 #define Anum_pg_am_ammarkpos 16
89 #define Anum_pg_am_amrestrpos 17
90 #define Anum_pg_am_amopen 18
91 #define Anum_pg_am_amclose 19
92 #define Anum_pg_am_ambuild 20
93 #define Anum_pg_am_amcreate 21
94 #define Anum_pg_am_amdestroy 22
97 * initial contents of pg_am
101 DATA(insert OID = 405 ( hash PGUID "o" 1 1 hashgettuple hashinsert hashdelete - - - - hashbeginscan hashrescan hashendscan hashmarkpos hashrestrpos - - hashbuild - - ));
102 DATA(insert OID = 402 ( rtree PGUID "o" 8 3 rtgettuple rtinsert rtdelete - - - - rtbeginscan rtrescan rtendscan rtmarkpos rtrestrpos - - rtbuild - - ));
103 DATA(insert OID = 403 ( btree PGUID "o" 5 1 btgettuple btinsert btdelete - - - - btbeginscan btrescan btendscan btmarkpos btrestrpos - - btbuild - - ));
104 #define BTREE_AM_OID 403
105 DATA(insert OID = 783 ( gist PGUID "o" 100 7 gistgettuple gistinsert gistdelete - - - - gistbeginscan gistrescan gistendscan gistmarkpos gistrestrpos - - gistbuild - - ));
110 DATA(insert OID = 404 ( nobtree PGUID "o" 5 1 nobtgettuple nobtinsert nobtdelete - - - - nobtbeginscan nobtrescan nobtendscan nobtmarkpos nobtrestrpos - - nobtbuild - - ));