Re: checksumming data - Mailing list pgsql-novice

From Michael Fuhr
Subject Re: checksumming data
Date
Msg-id 20050104154811.GA91445@winnie.fuhr.org
Whole thread Raw
In response to Re: checksumming data  (Can Burak Cilingir <canburak@cs.bilgi.edu.tr>)
List pgsql-novice
On Tue, Jan 04, 2005 at 10:26:26AM +0200, Can Burak Cilingir wrote:

> the need for md5summing by the help of database is just curiosity. I am
> summing before insert which was enough already.

The digest() function in contrib/pgcrypto takes a BYTEA or TEXT
argument, which presumably means you'd have to read the entire file
into memory (or can it be mmap()'ed?  I'm not sure).  For large
data this isn't practical, so you might want to look for something
that can build the hash in blocks.  See the pgcrypto source code
for examples.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-novice by date:

Previous
From: Jeff Eckermann
Date:
Subject: Re: [despammed] Installation
Next
From: brew@theMode.com
Date:
Subject: Re: pg_config missing in install