Re: CRC function?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Francisco Reyes <lists(at)natserv(dot)com>
Cc: pgsql General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: CRC function?
Date: 2002-07-08 18:12:22
Message-ID: 200207081812.g68ICMJ11226@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Francisco Reyes wrote:
> On Mon, 8 Jul 2002, Bruce Momjian wrote:
>
> > Francisco Reyes wrote:
> > > Looked at contrib and didn't see it.
> > > Anyone knows if there is a CRC fuction available for PostgreSQL.
> > >
> > > As an example of how I would use it.
> > > Imagine a table with 3 columns
> > > id,text, crc_val
> > >
> > > I could then do something like:
> > > select id from <table> where crc(text) <> crc_val;
> >
> > Sure see contrib/pgcrypto/README:
> >
> > Hashes: MD5, SHA1, CRC32, CRC32B, GOST, TIGER, RIPEMD160,
>
> CRC32 is not installed/supported.
> Wrote to the author asking him how difficult it would be to add.

Oh, yea, I see that now. Strange. We use CRC in the backend WAL code.
Funny it isn't already coded somewhere.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2002-07-08 18:13:01 Re: Query Speed!!!
Previous Message Bruce Momjian 2002-07-08 18:08:06 Re: Redhat/glibc and postgre time "bug"