Re: WIP: Deferrable unique constraints - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: WIP: Deferrable unique constraints
Date
Msg-id 1247598813.5902.42.camel@monkey-cat.sm.truviso.com
Whole thread Raw
In response to Re: WIP: Deferrable unique constraints  (Kenneth Marshall <ktm@rice.edu>)
Responses Re: WIP: Deferrable unique constraints
List pgsql-hackers
On Tue, 2009-07-14 at 13:29 -0500, Kenneth Marshall wrote:
> I am looking at adding unique support to hash indexes for 8.5 and
> they will definitely need to visit the heap.

Have you seen this patch?

http://archives.postgresql.org/message-id/1246840119.19547.126.camel@jdavis

This patch will support unique constraints for hash indexes as well.
There may still be a use-case for specialized hash index unique
constraints, similar to btree, but please follow the work to make sure
that no work is wasted.

Also, I don't see a problem with using the same hacks in the hash index
code as is used in the btree index code. If you see a better way, or if
you think index AM changes would be useful to you as well, you should
probably open that discussion.

I was trying to provide an alternative to an index AM API change,
because I thought there might be some resistance to that. However, if
there are multiple index AMs that can make use of it, there is a
stronger case for an API change.

Regards,Jeff Davis



pgsql-hackers by date:

Previous
From: Jamie Fox
Date:
Subject: Re: [GENERAL] large object does not exist after pg_migrator
Next
From: Robert Haas
Date:
Subject: Re: [pgsql-www] Launching commitfest.postgresql.org