Update of bitmask type

From: Adriaan Joubert <a(dot)joubert(at)albourne(dot)com>
To: Postgres-General <pgsql-general(at)postgreSQL(dot)org>
Subject: Update of bitmask type
Date: 1999-06-16 15:38:02
Message-ID: 3767C4DA.2DBB1C2D@albourne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Hi,

here is a new version of the bitmask type. It supports hash-indices as
well now, and fixes a bug in the definition of the <> operator.

I would appreciate it if somebody more knowledgable than myself would
look over the index definitions. They seem to work and are used by
postgres, so I guess they can't be all wrong. The hashing function is
the same as that for char's and comes straight out of the postgres
source code.

BTW, chapter 36 of the documentation could do with some additions, but I
don't feel knowledgable enough to attempt it. E.g. it shows how to put
an entry for the hashing into pg_amop, but never explains how to define
the entry in pg_amproc and doesn't tell you that you need to define a
separate hashing function. It took me a while of looking through the
other definitions and digging through the source code to come up with a
best guess.

Perhaps this could go into the contrib area if it passes muster, as it
is an example of a user-defined type with indices.

Cheers,

Adriaan

Attachment Content-Type Size
bit1.tar.gz application/x-gzip 4.8 KB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 1999-06-16 15:41:42 Re: [GENERAL] Postgresql v6.5 changes
Previous Message Gene Selkov, Jr. 1999-06-16 15:36:18 Success in upgrading to 6.5

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-06-16 15:40:24 Re: [HACKERS] SET QUERY_LIMIT bug report
Previous Message Tom Lane 1999-06-16 15:30:58 Re: [HACKERS] 6.5.0 - Overflow bug in AVG( )