Re: [HACKERS] MIN not defined for OID types

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: lockhart(at)alumni(dot)caltech(dot)edu (Thomas G(dot) Lockhart)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] MIN not defined for OID types
Date: 1998-09-05 14:20:39
Message-ID: 199809051420.KAA25275@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> It is do-able, but I'm not sure it is desirable. If there is an exact
> function or operator match, then that would be preferred, right? The
> "binary-compatible" is a cheat to help performance and to allow us to
> not have to define _every_ possible combination of functions and
> operators. So it's helped on some things, but probably shouldn't become
> the only mechanism. For one thing, if you change the underlying
> implementation of a type, then it would not longer be binary compatible
> with a second one, and you would need the explicit functions and
> operators anyway.
>
> I didn't change any of the type matching behavior of the aggregate
> functions that I can recall. Maybe I should have; if I have time I'll
> look at it. That would probably be better than bothering to implement
> something explicitly for oids:
>
> postgres=> select min(oid) from foo;
> ERROR: No such function 'min' with the specified attributes

OK. A question. Aren't oid's unsigned int, while int4 is signed. How
does binary compatable indexes handle this. Do oid's grater than 2gig
work with the int4 indexes? Do negative integers work with oid indexes?

--
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas G. Lockhart 1998-09-05 14:49:33 Re: [HACKERS] MIN not defined for OID types
Previous Message D'Arcy J.M. Cain 1998-09-05 10:32:04 Re: [HACKERS] Adding PRIMARY KEY info