Re: varbit type

From: Adriaan Joubert <a(dot)joubert(at)albourne(dot)com>
To: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: Postgres Hackers List <hackers(at)postgreSQL(dot)org>
Subject: Re: varbit type
Date: 2000-07-20 11:11:21
Message-ID: 3976DE59.B53632BF@albourne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Sorry about the delay in getting the bit-code to you -- it has been a
bit busy. Attached is a tar file with the c-code for the bit functions
and an implementation of a user-defined type on these. I hope Thomas is
still prepared to integrate this as a proper type into postgres.

The main difference is that I do not allow binary operations on bit
strings of unequal length anymore (doubt it would have been very relevant
anyway, and this solves a lot of conceptual problems), and I discovered
that the standard requires bit_length and octet_length functions on bit
strings, so I've added those. It runs on linux and alphas.

If anybody has any comments on the code or suggestions for improvements,
please let me know.

Regards,

Adriaan

Attachment Content-Type Size
bitstr.tgz application/octet-stream 8.6 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Adriaan Joubert 2000-07-20 11:36:34 Loading binary data into the database
Previous Message Karel Zak 2000-07-20 10:40:04 Re: Hello PL/Python