1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* pg_opclass.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* definition of the system "opclass" relation (pg_opclass)
|
|
|
|
* along with the relation's initial contents.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*
|
2001-01-24 20:43:33 +01:00
|
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
2001-08-13 20:45:36 +02:00
|
|
|
* $Id: pg_opclass.h,v 1.38 2001/08/13 18:45:36 tgl 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
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_OPCLASS_H
|
|
|
|
#define PG_OPCLASS_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_opclass definition. cpp turns this into
|
|
|
|
* typedef struct FormData_pg_opclass
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
*/
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
CATALOG(pg_opclass)
|
|
|
|
{
|
2000-06-19 05:55:01 +02:00
|
|
|
NameData opcname; /* name of opclass defined by this row */
|
|
|
|
Oid opcdeftype; /* type that opclass is default for, or 0 */
|
1996-08-28 03:59:28 +02:00
|
|
|
} FormData_pg_opclass;
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* Form_pg_opclass corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_opclass relation.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef FormData_pg_opclass *Form_pg_opclass;
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* compiler constants for pg_opclass
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Natts_pg_opclass 2
|
|
|
|
#define Anum_pg_opclass_opcname 1
|
|
|
|
#define Anum_pg_opclass_opcdeftype 2
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* initial contents of pg_opclass
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*/
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 421 ( int2_ops 21 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 422 ( box_ops 603 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 423 ( float8_ops 701 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 426 ( int4_ops 23 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
1996-08-28 03:59:28 +02:00
|
|
|
#define INT4_OPS_OID 426
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 427 ( oid_ops 26 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-07-04 08:11:54 +02:00
|
|
|
#define OID_OPS_OID 427
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 428 ( float4_ops 700 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 429 ( char_ops 18 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 431 ( text_ops 25 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 432 ( abstime_ops 702 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-06-19 05:55:01 +02:00
|
|
|
DATA(insert OID = 433 ( bigbox_ops 0 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 434 ( poly_ops 604 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 435 ( oidvector_ops 30 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 714 ( circle_ops 718 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 754 ( int8_ops 20 ));
|
1999-03-14 06:09:05 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 1076 ( bpchar_ops 1042 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
1997-09-07 07:04:48 +02:00
|
|
|
DATA(insert OID = 1077 ( varchar_ops 1043 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 1114 ( date_ops 1082 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 1115 ( time_ops 1083 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 1181 ( name_ops 19 ));
|
1998-08-19 04:04:17 +02:00
|
|
|
DESCR("");
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DATA(insert OID = 1312 ( timestamp_ops 1184 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DATA(insert OID = 1313 ( interval_ops 1186 ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 810 ( macaddr_ops 829 ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 935 ( inet_ops 869 ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 652 ( cidr_ops 650 ));
|
1998-10-21 18:06:50 +02:00
|
|
|
DESCR("");
|
2000-03-15 00:06:59 +01:00
|
|
|
DATA(insert OID = 1768 ( numeric_ops 1700 ));
|
1999-09-29 23:13:31 +02:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 1690 ( bool_ops 16 ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("");
|
2000-04-12 19:17:23 +02:00
|
|
|
DATA(insert OID = 1399 ( timetz_ops 1266 ));
|
2000-02-10 20:51:52 +01:00
|
|
|
DESCR("");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 424 ( bit_ops 1560 ));
|
|
|
|
DESCR("");
|
|
|
|
DATA(insert OID = 425 ( varbit_ops 1562 ));
|
|
|
|
DESCR("");
|
2001-08-13 20:45:36 +02:00
|
|
|
DATA(insert OID = 1961 ( bytea_ops 17 ));
|
|
|
|
DESCR("");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* PG_OPCLASS_H */
|