diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/commands/indexcmds.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index ec20ba38d13..3f3a89fe922 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -1836,7 +1836,7 @@ ComputeIndexAttrs(IndexInfo *indexInfo, /* * Resolve possibly-defaulted operator class specification * - * Note: This is used to resolve operator class specification in index and + * Note: This is used to resolve operator class specifications in index and * partition key definitions. */ Oid @@ -1850,34 +1850,6 @@ ResolveOpClass(List *opclass, Oid attrType, Oid opClassId, opInputType; - /* - * Release 7.0 removed network_ops, timespan_ops, and datetime_ops, so we - * ignore those opclass names so the default *_ops is used. This can be - * removed in some later release. bjm 2000/02/07 - * - * Release 7.1 removes lztext_ops, so suppress that too for a while. tgl - * 2000/07/30 - * - * Release 7.2 renames timestamp_ops to timestamptz_ops, so suppress that - * too for awhile. I'm starting to think we need a better approach. tgl - * 2000/10/01 - * - * Release 8.0 removes bigbox_ops (which was dead code for a long while - * anyway). tgl 2003/11/11 - */ - if (list_length(opclass) == 1) - { - char *claname = strVal(linitial(opclass)); - - if (strcmp(claname, "network_ops") == 0 || - strcmp(claname, "timespan_ops") == 0 || - strcmp(claname, "datetime_ops") == 0 || - strcmp(claname, "lztext_ops") == 0 || - strcmp(claname, "timestamp_ops") == 0 || - strcmp(claname, "bigbox_ops") == 0) - opclass = NIL; - } - if (opclass == NIL) { /* no operator class specified, so find the default */ |