Re: Disabling an index temporarily - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Disabling an index temporarily
Date
Msg-id 21578.1450064093@sss.pgh.pa.us
Whole thread Raw
In response to Re: Disabling an index temporarily  (Bill Moran <wmoran@potentialtech.com>)
Responses Re: Disabling an index temporarily  (Victor Yegorov <vyegorov@gmail.com>)
List pgsql-hackers
Bill Moran <wmoran@potentialtech.com> writes:
> I would think that NONUNIQUE should be the default, and you should have
> to specify something special to also disable unique indexes. Arguably,
> unique indexes are actually an implementation detail of unique
> constraints. Disabling a performance-based index doesn't cause data
> corruption, whereas disabling an index created as part of unique
> constraint can allow invalid data into the table.

Maybe I misunderstood, but I thought what was being discussed here is
preventing the planner from selecting an index for use in queries, while
still requiring all table updates to maintain validity of the index.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Using quicksort for every external sort run
Next
From: Michael Paquier
Date:
Subject: Re: Disabling an index temporarily