Re: MD5 aggregate - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: MD5 aggregate
Date
Msg-id 51BA3DC8.4070607@gmx.net
Whole thread Raw
In response to MD5 aggregate  (Dean Rasheed <dean.a.rasheed@gmail.com>)
List pgsql-hackers
On 6/13/13 5:35 AM, Dean Rasheed wrote:
> Attached is a patch implementing a new aggregate function md5_agg() to
> compute the aggregate MD5 sum across a number of rows.

That seems somewhat useful.

> In passing, I've tidied up and optimised the code in md5.c a bit ---
> specifically I've removed the malloc()/memcpy()/free() code that was
> unnecessarily making a copy of the entire input data just to pad it
> and append the bit count. This reduces the memory consumption of the
> existing md5() functions for large inputs, and gives a modest
> performance boost. As a result, the md5() function can no longer throw
> an out-of-memory error.

I think it would be better if you split this into two separate patches.




pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: Index on regexes
Next
From: Josh Berkus
Date:
Subject: Re: ALTER SYSTEM SET command to change postgresql.conf parameters (RE: Proposal for Allow postgresql.conf values to be changed via SQL [review])