Re: what can depend on index - Mailing list pgsql-general

From Szymon Guz
Subject Re: what can depend on index
Date
Msg-id AANLkTi=u0ELrPV8s09kvVHrhBeqj-TcMqQ3UDvWAPjRP@mail.gmail.com
Whole thread Raw
In response to Re: what can depend on index  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Why Select Count(*) from table - took over 20 minutes?
List pgsql-general


On 26 October 2010 16:29, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Szymon Guz <mabewlun@gmail.com> writes:
> today I noticed that in the documentation there is DROP INDEX CASCADE.
> I've got one question: what is that for? What can depend on index?

Unique constraints and foreign key constraints, for starters.

But even if there weren't anything, we'd still provide the CASCADE
syntax for future-proofing purposes.

                       regards, tom lane


Thanks for the answer, I didn't know about the foreign key, I only thought about the future use.

regards
Szymon

pgsql-general by date:

Previous
From: Szymon Guz
Date:
Subject: Re: what can depend on index
Next
From: Ozz Nixon
Date:
Subject: Why Select Count(*) from table - took over 20 minutes?