Re: [HACKERS] Indexes bug

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: djackson(at)cpsgroup(dot)com (Jackson, DeJuan)
Cc: tgl(at)sss(dot)pgh(dot)pa(dot)us, fenix(at)am(dot)ring(dot)ru, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Indexes bug
Date: 1998-08-11 18:35:57
Message-ID: 199808111835.OAA24689@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > I think we now know what is happening in the current cvs tree. The
> > optimizer calls op_class to find if there is an pg_opam entry for the
> > expression (int4eq), the current index access type(btree), and the
> > current index op class(int4_ops).
> >
> > In the case of oideqint4, there is no pg_amop to match it, and we
> > can't
> > add extra rows to pg_amop to make it work. I suppose we could try
> > adding a amopopr_compat column to pg_amop, and somehow do a lookup on
> > that if the first one does not match. Because of the way the system
> > caches are structured, we would need a new cache for that extra
> > column,
> > I think. There must be a better way.
> >
> Maybe I missed it but why can't we add the extra row to pg_amop.

Not sure. Each access method has a predefined number of rows for that
access type. I will check on why it fails. For example, btree has five
rows. hash has fewer.

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-08-11 18:38:02 Re: [HACKERS] Fix in oracle_compat.c
Previous Message Jackson, DeJuan 1998-08-11 18:34:28 RE: [HACKERS] Indexes bug