Re: [HACKERS] discussion on proposed int8_ops patch

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Ryan Bradetich <rbrad(at)hpb50023(dot)boi(dot)hp(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] discussion on proposed int8_ops patch
Date: 1999-02-23 18:04:34
Message-ID: 36D2EDB2.8F0717FA@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Enclosed below I have a patch to allow a btree index on the int8 type.
> I would like some feedback on what the hash function for the int8 hash
> function in the ./backend/access/hash/hashfunc.c should return.
> Also, could someone (maybe Tomas Lockhart?) look-over the patch and
> make sure the system table entries are correct?

I've got the patches and have applied them (with a bit of fix-up) to my
current source tree. I would like to look at them in more detail before
committing them to the source tree, but I'm sure you've gotten most of
the important stuff.

istm that the int8 hash function can look just like the int4 hash
function, coercing the int8 input down to int4 first. afaik this isn't a
problem, in that int8->int4 overflows are not signaled. I've enabled
this hash strategy in your code.

> P.S. I claimed the following OID's for this implimentation:
> 754 and 842 (for the btree index)
> 949 for the hash index (not totally implimented yet.)
> I got these by using the ./include/catalog/unused_oids script.

Those should be fine, and that was the right way to choose them.

Sorry that I'm out of town until next week, but I should be able to
finish things then. Thanks for the patches.

- Tom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Davis 1999-02-23 18:17:15 RE: [GENERAL] Transaction logging
Previous Message Brian P Millett 1999-02-23 15:40:36 postmaster failure with 2-23 snapshot