Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Tom Lane
[EMAIL PROTECTED] (Nathan Myers) writes: > Seriously, "indislossy" is a singularly poor name for a predicate. Perhaps, but it fits with the existing naming conventions for Postgres catalog columns. Unless we want to indulge in wholesale renaming of the system's catalog columns (and break an awfu

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Nathan Myers
On Tue, Jul 10, 2001 at 01:36:33PM -0400, Tom Lane wrote: > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > But why is this called lossy? Shouldn't it be called "exceedy"? > > Good point ;-). "lossy" does sound like the index might "lose" tuples, > which is exactly what it's not allowed to do;

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > But why is this called lossy? Shouldn't it be called "exceedy"? Good point ;-). "lossy" does sound like the index might "lose" tuples, which is exactly what it's not allowed to do; it must find all the tuples that match the query. The terminology

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Bruce Momjian
> Peter Eisentraut <[EMAIL PROTECTED]> writes: > > But why is this called lossy? Shouldn't it be called "exceedy"? > > Good point ;-). "lossy" does sound like the index might "lose" tuples, > which is exactly what it's not allowed to do; it must find all the > tuples that match the query. > >

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Peter Eisentraut
Tom Lane writes: > Not true at all. The tuple commit status needs to be rechecked, yes, > but with a normal index it is not necessary to recheck whether the index > key field actually satisfies the index qual conditions. With a lossy > index it *is* necessary to recheck --- the index may return

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Bruce Momjian writes: > A match in the index needs to be reevaluated in the heap tuple data, > since a match in the index does not necessarily mean, that the heap tuple > matches. > AFAIK, this is true for all indexes in PostgreSQL, because index row

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Bruce Momjian
> Bruce Momjian writes: > > > > > > > Can someone tell me what we use indislossy for? > > > > > > Ok, so the interpretation of this field is: > > > A match in the index needs to be reevaluated in the heap tuple data, > > > since a match in the index does not necessarily mean, that the heap tu

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Peter Eisentraut
Bruce Momjian writes: > > > > > Can someone tell me what we use indislossy for? > > > > Ok, so the interpretation of this field is: > > A match in the index needs to be reevaluated in the heap tuple data, > > since a match in the index does not necessarily mean, that the heap tuple > >

Re: AW: [HACKERS] pg_index.indislossy

2001-07-09 Thread Bruce Momjian
Added to pg_index.h file as a comment. > > > > > Can someone tell me what we use indislossy for? > > Ok, so the interpretation of this field is: > A match in the index needs to be reevaluated in the heap tuple data, > since a match in the index does not necessarily mean, that the