Re: type conversion discussion

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: type conversion discussion
Date: 2000-05-15 19:50:03
Message-ID: 28567.958420203@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> if you wanted to refer to a specific row by OID. However, while it
>> might be logically purer to insist that OIDs are not numbers, it's just
>> too damn handy to be laxer about the distinction.

> Definitely. But wouldn't three (or six) extra `=' operators be the road of
> least resistance or clearest separation? Not sure.

Actually, that's what we've got now: "oid = 1234" gets parsed into the
oideqint4 operator. What bugs me about that is the shenanigans the
optimizer has to pull to use an index on the oid column. I'm hoping
that we can clean up this mess enough so that the operator delivered by
the parser is the same thing the column's index claims to use in the
first place.

> One thing to keep in mind in any case is that oids might not be int4-like
> forever, eventually we might want int8, or the unsigned version thereof.

Agreed, but with any luck that case will work transparently too: the
constant will just get promoted up to int8 before we apply the operator.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-05-15 19:55:08 Re: Proposal: replace no-overwrite with Berkeley DB
Previous Message The Hermit Hacker 2000-05-15 19:42:19 Re: FTP-sever ftp.postgresql.org unable to get dir-list ?