From ec646dbc65afc8c55118cb3fb75cb6fd18d78dd8 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 17 Aug 2003 19:58:06 +0000 Subject: Create a 'type cache' that keeps track of the data needed for any particular datatype by array_eq and array_cmp; use this to solve problems with memory leaks in array indexing support. The parser's equality_oper and ordering_oper routines also use the cache. Change the operator search algorithms to look for appropriate btree or hash index opclasses, instead of assuming operators named '<' or '=' have the right semantics. (ORDER BY ASC/DESC now also look at opclasses, instead of assuming '<' and '>' are the right things.) Add several more index opclasses so that there is no regression in functionality for base datatypes. initdb forced due to catalog additions. --- src/include/parser/parse_clause.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/include/parser/parse_clause.h') diff --git a/src/include/parser/parse_clause.h b/src/include/parser/parse_clause.h index 670b72cfba..8439c19804 100644 --- a/src/include/parser/parse_clause.h +++ b/src/include/parser/parse_clause.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_clause.h,v 1.36 2003/08/07 19:20:23 tgl Exp $ + * $Id: parse_clause.h,v 1.37 2003/08/17 19:58:06 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -37,7 +37,8 @@ extern List *addAllTargetsToSortList(ParseState *pstate, bool resolveUnknown); extern List *addTargetToSortList(ParseState *pstate, TargetEntry *tle, List *sortlist, List *targetlist, - List *opname, bool resolveUnknown); + int sortby_kind, List *sortby_opname, + bool resolveUnknown); extern Index assignSortGroupRef(TargetEntry *tle, List *tlist); extern bool targetIsInSortList(TargetEntry *tle, List *sortList); -- cgit v1.2.1