77 *
88 * Copyright (c) 1994, Regents of the University of California
99 *
10- * $Id: pg_opclass.h,v 1.1.1.1 1996/07/09 06:21:17 scrappy Exp $
10+ * $Id: pg_opclass.h,v 1.2 1996/08/15 07:42:09 scrappy Exp $
1111 *
1212 * NOTES
1313 * the genbki.sh script reads this file and generates .bki
3434
3535CATALOG (pg_opclass ) {
3636NameData opcname ;
37+ Oid opcdeftype ;
3738}FormData_pg_opclass ;
3839
3940/* ----------------
@@ -47,39 +48,46 @@ typedef FormData_pg_opclass*Form_pg_opclass;
4748 *compiler constants for pg_opclass
4849 * ----------------
4950 */
50- #define Natts_pg_opclass 1
51+ #define Natts_pg_opclass 2
5152#define Anum_pg_opclass_opcname 1
53+ #define Anum_pg_opclass_opcdeftype 2
5254
5355/* ----------------
5456 *initial contents of pg_opclass
5557 * ----------------
5658 */
5759
58- DATA (insert OID = 406 (char2_ops ));
59- DATA (insert OID = 407 (char4_ops ));
60- DATA (insert OID = 408 (char8_ops ));
61- DATA (insert OID = 409 (name_ops ));
62- DATA (insert OID = 421 (int2_ops ));
63- DATA (insert OID = 422 (box_ops ));
64- DATA (insert OID = 423 (float8_ops ));
65- DATA (insert OID = 424 (int24_ops ));
66- DATA (insert OID = 425 (int42_ops ));
67- DATA (insert OID = 426 (int4_ops ));
60+ /*
61+ * putting _null_'s in the (fixed-length) type field is bad
62+ * (see the README in this directory), so just put zeros
63+ * in, which are invalid OID's anyway. --djm
64+ */
65+ DATA (insert OID = 406 (char2_ops 409 ));
66+ DATA (insert OID = 407 (char4_ops 410 ));
67+ DATA (insert OID = 408 (char8_ops 411 ));
68+ /* OID 409 is already used in table pg_type--this one should be unused */
69+ DATA (insert OID = 1181 (name_ops 19 ));
70+ DATA (insert OID = 421 (int2_ops 21 ));
71+ DATA (insert OID = 422 (box_ops 603 ));
72+ DATA (insert OID = 423 (float8_ops 701 ));
73+ DATA (insert OID = 424 (int24_ops 0 ));
74+ DATA (insert OID = 425 (int42_ops 0 ));
75+ DATA (insert OID = 426 (int4_ops 23 ));
6876#define INT4_OPS_OID 426
69- DATA (insert OID = 427 (oid_ops ));
70- DATA (insert OID = 428 (float4_ops ));
71- DATA (insert OID = 429 (char_ops ));
72- DATA (insert OID = 430 (char16_ops ));
73- DATA (insert OID = 431 (text_ops ));
74- DATA (insert OID = 432 (abstime_ops ));
75- DATA (insert OID = 433 (bigbox_ops ));
76- DATA (insert OID = 434 (poly_ops ));
77- DATA (insert OID = 435 (oidint4_ops ));
78- DATA (insert OID = 436 (oidname_ops ));
79- DATA (insert OID = 437 (oidint2_ops ));
80- DATA (insert OID = 1076 (bpchar_ops ));
81- DATA (insert OID = 1077 (varchar_ops ));
82- DATA (insert OID = 1114 (date_ops ));
83- DATA (insert OID = 1115 (time_ops ));
77+ DATA (insert OID = 427 (oid_ops 26 ));
78+ DATA (insert OID = 428 (float4_ops 700 ));
79+ DATA (insert OID = 429 (char_ops 18 ));
80+ DATA (insert OID = 430 (char16_ops 20 ));
81+ DATA (insert OID = 431 (text_ops 25 ));
82+ DATA (insert OID = 432 (abstime_ops 702 ));
83+ DATA (insert OID = 433 (bigbox_ops 0 ));
84+ DATA (insert OID = 434 (poly_ops 604 ));
85+ DATA (insert OID = 435 (oidint4_ops 910 ));
86+ DATA (insert OID = 436 (oidname_ops 911 ));
87+ DATA (insert OID = 437 (oidint2_ops 810 ));
88+ DATA (insert OID = 1076 (bpchar_ops 1042 ));
89+ DATA (insert OID = 1077 (varchar_ops 1043 ));
90+ DATA (insert OID = 1114 (date_ops 1082 ));
91+ DATA (insert OID = 1115 (time_ops 1083 ));
8492
8593#endif /* PG_OPCLASS_H */