Skip to content

Commit 7e5e7ab

Browse files
committed
Update opclass to be non-unique.
1 parent 838fb5c commit 7e5e7ab

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/include/catalog/indexing.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: indexing.h,v 1.29 1999/11/22 17:56:37 momjian Exp $
10+
* $Id: indexing.h,v 1.30 1999/11/23 04:47:39 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -182,7 +182,8 @@ DECLARE_UNIQUE_INDEX(pg_inherits_relid_seqno_index on pg_inherits using btree(in
182182
DECLARE_UNIQUE_INDEX(pg_language_name_index on pg_language using btree(lanname name_ops));
183183
DECLARE_UNIQUE_INDEX(pg_language_oid_index on pg_language using btree(oid oid_ops));
184184
DECLARE_UNIQUE_INDEX(pg_listener_relname_pid_index on pg_listener using btree(relname name_ops, listenerpid int4_ops));
185-
DECLARE_UNIQUE_INDEX(pg_opclass_deftype_index on pg_opclass using btree(opcdeftype oid_ops));
185+
/* This column needs to allow multiple zero entries, but is in the cache */
186+
DECLARE_INDEX(pg_opclass_deftype_index on pg_opclass using btree(opcdeftype oid_ops));
186187
DECLARE_UNIQUE_INDEX(pg_opclass_name_index on pg_opclass using btree(opcname name_ops));
187188
DECLARE_UNIQUE_INDEX(pg_operator_oid_index on pg_operator using btree(oid oid_ops));
188189
DECLARE_UNIQUE_INDEX(pg_operator_oprname_l_r_k_index on pg_operator using btree(oprname name_ops, oprleft oid_ops, oprright oid_ops, oprkind char_ops));

src/include/catalog/pg_opclass.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_opclass.h,v 1.21 1999/11/22 17:56:37 momjian Exp $
10+
* $Id: pg_opclass.h,v 1.22 1999/11/23 04:47:39 momjian Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -68,11 +68,9 @@ DATA(insert OID = 422 ( box_ops 603 ));
6868
DESCR("");
6969
DATA(insert OID = 423 ( float8_ops 701 ));
7070
DESCR("");
71-
/* Technically, deftype is wrong, but it must be unique for index, bjm */
72-
DATA(insert OID = 424 ( int24_ops 424 ));
71+
DATA(insert OID = 424 ( int24_ops 0 ));
7372
DESCR("");
74-
/* Technically, deftype is wrong, but it must be unique for index, bjm */
75-
DATA(insert OID = 425 ( int42_ops 425 ));
73+
DATA(insert OID = 425 ( int42_ops 0 ));
7674
DESCR("");
7775
DATA(insert OID = 426 ( int4_ops 23 ));
7876
DESCR("");
@@ -87,8 +85,7 @@ DATA(insert OID = 431 ( text_ops 25 ));
8785
DESCR("");
8886
DATA(insert OID = 432 ( abstime_ops 702 ));
8987
DESCR("");
90-
/* Technically, deftype is wrong, but it must be unique for index, bjm */
91-
DATA(insert OID = 433 ( bigbox_ops 433 ));
88+
DATA(insert OID = 433 ( bigbox_ops 603 ));
9289
DESCR("");
9390
DATA(insert OID = 434 ( poly_ops 604 ));
9491
DESCR("");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy