Re: aggregate hash function

From: "Vyacheslav Kalinin" <vka(at)mgcp(dot)com>
To: "Matthew Dennis" <mdennis(at)merfer(dot)net>
Cc: PGSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: aggregate hash function
Date: 2008-01-30 22:40:16
Message-ID: 9b1af80e0801301440qabc4754n6e8b8791bcf798fa@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Most implementations of md5 internally consist of 3 functions: md5_init -
which initializes internal context, md5_update - which accepts portions of
data and processes them and md5_final - which finalizes the hash and
releases the context. These roughly suit aggregate's internal functions
(SFUNC and FINALFUNC, md5_init is probably to be called on first actual
input). Since performance is important for you the functions should be
written in low-level language as C, to me it doesn't look difficult to take
some C md5 module and adapt it to be an aggregate... though it's not like I
would do this easily myself :)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Josh Berkus 2008-01-30 22:47:47 Re: PostgreSQL Certification
Previous Message Gregory Stark 2008-01-30 22:36:16 Re: expression index on date_trunc