pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Denis Zaitsev <zzz@cd-club.ru>
Cc: pgsql-sql@postgresql.org
Subject: Re: default operator class (PostgreSQL's error?)
Date: Sun, 02 Mar 2003 22:27:04 -0500
Message-ID: <28327.1046662024@sss.pgh.pa.us> (raw)
In-Reply-To: <20030303070705.C4208@natasha.zzz.zzz>
References: <20030302142401.B4208@natasha.zzz.zzz>
	<18747.1046628100@sss.pgh.pa.us>
	<20030303070705.C4208@natasha.zzz.zzz>

Denis Zaitsev <zzz@cd-club.ru> writes:
> On Sun, Mar 02, 2003 at 01:01:40PM -0500, Tom Lane wrote:
>> Another possibility is that the opclass is in a schema that is not in
>> your search path --- I can't recall right now whether being in the
>> search path affects lookup of a default opclass.

> It is in a schema, and the schema is definitely in the search_path -
> it's pointed first there.  More over, all the games described are
> being played in that schema. 

Well, it works for me: for example, after building and installing the
contrib/isbn_issn module, I can do

opc=# create table isbn_t (
opc(#     isbn  isbn unique not null
opc(# );
NOTICE:  CREATE TABLE / UNIQUE will create implicit index 'isbn_t_isbn_key' for	table 'isbn_t'
CREATE TABLE

I looked at the code and saw that indeed a default opclass must be
visible in your search path to be found, so I suggest taking another
look at that aspect.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <28327.1046662024@sss.pgh.pa.us>
Permalink:  ../28327.1046662024@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28327.1046662024@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, zzz@cd-club.ru
  Subject: Re: default operator class (PostgreSQL's error?)
  In-Reply-To: <28327.1046662024@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox