Re: (9.1) btree_gist support for searching on "not equals" - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: (9.1) btree_gist support for searching on "not equals"
Date
Msg-id 4BF70306.6080309@cs.helsinki.fi
Whole thread Raw
In response to (9.1) btree_gist support for searching on "not equals"  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: (9.1) btree_gist support for searching on "not equals"
Re: (9.1) btree_gist support for searching on "not equals"
List pgsql-hackers
On 5/21/10 11:47 PM +0300, Jeff Davis wrote:
> It also allows you to enforce the constraint that only one tuple exists
> in a table by doing something like:
>
>    create table a
>    (
>      i int,
>      exclude using gist (i with<>),
>      unique (i)
>    );

FWIW, this is achievable a lot more easily:
CREATE UNIQUE INDEX "a_single_row" ON a ((1));


Regards,
Marko Tiikkaja


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Idea for getting rid of VACUUM FREEZE on cold pages
Next
From: Pavel Stehule
Date:
Subject: beta testing - planner bug - ERROR: XX000: failed to build any 2-way joins