Re: 9.1 support for hashing arrays - Mailing list pgsql-hackers

From Robert Haas
Subject Re: 9.1 support for hashing arrays
Date
Msg-id BANLkTimm+C5QYu5YzLQHCiuacZP8MFzueQ@mail.gmail.com
Whole thread Raw
In response to Re: 9.1 support for hashing arrays  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: 9.1 support for hashing arrays  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, May 20, 2011 at 1:43 AM, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
> Doh! I forgot one important piece of this algorithm - it is necessary
> to initialise the result to something non-zero at the start so that
> adding leading nulls to an array changes the final result.

Looks reasonable.

I believe, however, that applying this will invalidate the contents of
any hash indexes on array types that anyone has built using 9.1beta1.
Do we need to do something about that?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: timezone GUC
Next
From: Robert Haas
Date:
Subject: Re: patch: Allow \dd to show constraint comments