pg_opclass.h 3.25 KB
Newer Older
1 2 3
/*-------------------------------------------------------------------------
 *
 * pg_opclass.h--
4 5
 *	  definition of the system "opclass" relation (pg_opclass)
 *	  along with the relation's initial contents.
6 7 8 9
 *
 *
 * Copyright (c) 1994, Regents of the University of California
 *
10
 * $Id: pg_opclass.h,v 1.8 1998/04/07 18:12:16 momjian Exp $
11 12
 *
 * NOTES
13 14
 *	  the genbki.sh script reads this file and generates .bki
 *	  information from the DATA() statements.
15 16 17 18 19 20 21
 *
 *-------------------------------------------------------------------------
 */
#ifndef PG_OPCLASS_H
#define PG_OPCLASS_H

/* ----------------
22 23 24
 *		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.
25 26 27 28
 * ----------------
 */

/* ----------------
29 30
 *		pg_opclass definition.	cpp turns this into
 *		typedef struct FormData_pg_opclass
31
 * ----------------
32
 */
33

34 35
CATALOG(pg_opclass)
{
36 37
	NameData	opcname;
	Oid			opcdeftype;
38 39 40
} FormData_pg_opclass;

/* ----------------
41 42
 *		Form_pg_opclass corresponds to a pointer to a tuple with
 *		the format of pg_opclass relation.
43 44
 * ----------------
 */
45
typedef FormData_pg_opclass *Form_pg_opclass;
46 47

/* ----------------
48
 *		compiler constants for pg_opclass
49 50
 * ----------------
 */
51 52 53
#define Natts_pg_opclass				2
#define Anum_pg_opclass_opcname			1
#define Anum_pg_opclass_opcdeftype		2
54 55

/* ----------------
56
 *		initial contents of pg_opclass
57 58 59 60 61 62 63 64
 * ----------------
 */

/*
 * putting _null_'s in the (fixed-length) type field is bad
 * (see the README in this directory), so just put zeros
 * in, which are invalid OID's anyway.  --djm
 */
65 66 67 68 69 70
DATA(insert OID =  406 (	char2_ops		409   ));
DESCR("");
DATA(insert OID =  407 (	char4_ops		410   ));
DESCR("");
DATA(insert OID =  408 (	char8_ops		411   ));
DESCR("");
71
DATA(insert OID = 1181 (	name_ops		 19   ));
72
DESCR("");
73
DATA(insert OID =  421 (	int2_ops		 21   ));
74
DESCR("");
75
DATA(insert OID =  422 (	box_ops			603   ));
76
DESCR("");
77
DATA(insert OID =  423 (	float8_ops		701   ));
78
DESCR("");
79
DATA(insert OID =  424 (	int24_ops		  0   ));
80
DESCR("");
81
DATA(insert OID =  425 (	int42_ops		  0   ));
82
DESCR("");
83
DATA(insert OID =  426 (	int4_ops		 23   ));
84
DESCR("");
85
#define INT4_OPS_OID 426
86
DATA(insert OID =  427 (	oid_ops			 26   ));
87
DESCR("");
88
DATA(insert OID =  428 (	float4_ops		700   ));
89
DESCR("");
90
DATA(insert OID =  429 (	char_ops		 18   ));
91
DESCR("");
92 93
DATA(insert OID =  430 (	char16_ops		 20   ));
DESCR("");
94
DATA(insert OID =  431 (	text_ops		 25   ));
95
DESCR("");
96
DATA(insert OID =  432 (	abstime_ops		702   ));
97
DESCR("");
98
DATA(insert OID =  433 (	bigbox_ops		  0   ));
99
DESCR("");
100
DATA(insert OID =  434 (	poly_ops		604   ));
101
DESCR("");
102
DATA(insert OID =  435 (	oidint4_ops		910   ));
103
DESCR("");
104
DATA(insert OID =  436 (	oidname_ops		911   ));
105
DESCR("");
106
DATA(insert OID =  437 (	oidint2_ops		810   ));
107
DESCR("");
108
DATA(insert OID =  714 (	circle_ops		718   ));
109
DESCR("");
110
DATA(insert OID = 1076 (	bpchar_ops	   1042   ));
111
DESCR("");
112
DATA(insert OID = 1077 (	varchar_ops    1043   ));
113
DESCR("");
114
DATA(insert OID = 1114 (	date_ops	   1082   ));
115
DESCR("");
116
DATA(insert OID = 1115 (	time_ops	   1083   ));
117
DESCR("");
118
DATA(insert OID = 1312 (	datetime_ops   1184   ));
119
DESCR("");
120
DATA(insert OID = 1313 (	timespan_ops   1186   ));
121
DESCR("");
122

123
#endif							/* PG_OPCLASS_H */