X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id F37BE9DC94B for ; Thu, 9 Feb 2006 10:09:44 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 49750-03 for ; Thu, 9 Feb 2006 10:09:48 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 9A26A9DC948 for ; Thu, 9 Feb 2006 10:09:42 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k19E9jw9000524; Thu, 9 Feb 2006 09:09:45 -0500 (EST) To: Alvaro Herrera cc: pgsql-hackers@postgreSQL.org, cgg007@yahoo.com Subject: Re: Schema search for default operator classes (was: [ADMIN] Cross schema Primary Key Indexes problem with datatype in the public schema) In-reply-to: <20060209124248.GC5234@surnet.cl> References: <20060208195933.6993.qmail@web32515.mail.mud.yahoo.com> <22538.1139450686@sss.pgh.pa.us> <20060209124248.GC5234@surnet.cl> Comments: In-reply-to Alvaro Herrera message dated "Thu, 09 Feb 2006 09:42:48 -0300" Date: Thu, 09 Feb 2006 09:09:45 -0500 Message-ID: <523.1139494185@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.108 required=5 tests=[AWL=0.108] X-Spam-Score: 0.108 X-Spam-Level: X-Archive-Number: 200602/299 X-Sequence-Number: 79437 Alvaro Herrera writes: > Tom Lane wrote: >> Given that we only allow one default opclass for a datatype regardless >> of schema (see DefineOpClass), it's not really necessary for >> GetDefaultOpClass to restrict its search. > How about doing the constrained search first, and revert to the > unconstrained behavior if it doesn't find the desired opclass? Seems like rather a lot of work to preserve a behavior that (AFAICS) isn't even documented anywhere. regards, tom lane