Re: checksumming data

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: checksumming data
Дата
Msg-id 20050104154811.GA91445@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: checksumming data  (Can Burak Cilingir <canburak@cs.bilgi.edu.tr>)
Список 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 по дате отправления:

Предыдущее
От: Jeff Eckermann
Дата:
Сообщение: Re: [despammed] Installation
Следующее
От: brew@theMode.com
Дата:
Сообщение: Re: pg_config missing in install