Re: Hash support for arrays - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Hash support for arrays
Date
Msg-id 23126.1288471697@sss.pgh.pa.us
Whole thread Raw
In response to Re: Hash support for arrays  (Greg Stark <gsstark@mit.edu>)
Responses Re: Hash support for arrays
List pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> On Sat, Oct 30, 2010 at 9:21 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Thoughts? �In particular, is anyone aware of a better method
>> for combining the element hash values?

> The obvious thing to do seems like it would be to feed the individual
> values back into the regular hash function.

Hmm, you mean use hash_any on the sequence of hash values?  Interesting
idea; but hash_any doesn't look very amenable to being invoked
incrementally, and I don't think I want to construct a temp array with
enough space for the hashes of all the items in the input array ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Hash support for arrays
Next
From: Peter Eisentraut
Date:
Subject: 9.1alpha2 bundled -- please verify