Re: alter table cascade does not give notice about dropped - Mailing list pgsql-general

From Bruce Momjian
Subject Re: alter table cascade does not give notice about dropped
Date
Msg-id 200407061724.i66HOCt24708@candle.pha.pa.us
Whole thread Raw
In response to Re: alter table cascade does not give notice about dropped  (Rajesh Kumar Mallah <mallah@trade-india.com>)
List pgsql-general
Rajesh Kumar Mallah wrote:
> Tom Lane wrote:
>
> >Rajesh Kumar Mallah <mallah@trade-india.com> writes:
> >
> >
> >>Looks  like alter table does not tells about the indexes it dropped
> >>
> >>
> >
> >This is intentional --- we don't require you to say CASCADE to get rid
> >of an index, either.
> >
>
> I initailly ran the alter table without cascade option ,
>
> it told me  there is a dependent view.
>
> I did cascade  , it droped the view and it also dropped a
> multicolumn  index that contained the column.
>
> I notified me about the dropped view but not about
> the index.
>
> Is that ok ?

I think so.  We consider the index to be bound to the table, while the
view is more distinct and could include other table references as well.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Interpreting query plan
Next
From: Anony Mous
Date:
Subject: Re: Do we need more emphasis on backup?