Re: BUG #3723: dropping an index that doesn't refer to table's columns - Mailing list pgsql-bugs

From Sam Mason
Subject Re: BUG #3723: dropping an index that doesn't refer to table's columns
Date
Msg-id 20071106152556.GI1955@frubble.xen.chris-lamb.co.uk
Whole thread Raw
In response to Re: BUG #3723: dropping an index that doesn't refer to table's columns  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Tue, Nov 06, 2007 at 10:00:43AM -0500, Tom Lane wrote:
> Heikki Linnakangas <heikki@enterprisedb.com> writes:
> > Not sure that's enough of a use case to justify not banning it...
>
> Yeah, it probably is.

It's reasonably easy to do this instead:

  CREATE TABLE foo (
    one INTEGER NOT NULL UNIQUE CHECK (one = 1)
  );

The bug (for me) was that it's possible to get the database into an
inconsisant state, with no warning or obvious way to back out.


  Sam

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #3723: dropping an index that doesn't refer to table's columns
Next
From: "Mason Hale"
Date:
Subject: BUG #3724: Duplicate values added to table despite unique index