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 04:32:23
Message-ID: 200207080432.g684WNn14343@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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,
^^^^^^^^^^^^^

--
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 Alvaro Herrera 2002-07-08 04:36:59 Re: Efficient use of space in large table?
Previous Message Francisco Reyes 2002-07-08 04:30:50 CRC function?