Skip site navigation (1) Skip section navigation (2)

Re: TODO: DROP COLUMN .. CASCADE

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Rod Taylor <rbt(at)rbt(dot)ca>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>,PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: TODO: DROP COLUMN .. CASCADE
Date: 2003-03-06 18:40:01
Message-ID: 200303061840.h26Ie2m16382@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
OK, I will remove the TODO item:

  * Require DROP COLUMN CASCADE for a column that is part of a multi-column index

Can we promote the index drop to a warning if it is multi-column?

---------------------------------------------------------------------------

Rod Taylor wrote:
-- Start of PGP signed section.
> > > Basically I think this proposal would introduce a weird, confusing
> > > dichotomy of behavior between single- and multi-column indexes.
> > > And as Rod pointed out, you'd logically have to do the same for CHECK
> > > constraints depending on whether they mention one or several columns.
> > > (And what of multicolumn foreign keys?)  I see much confusion ahead,
> > > and no payback. 
> > 
> > I do see the confusion argument, but I also see cases where folks are
> > losing the use of an index for single-column lookups.  Others?
> 
> So long as the user has NOTICES enabled, they should see what else was
> dropped along with it. 
> 
> Besides, we should encourage schema modifications to be done in
> transactions, thus they can rollback if they're not happy with the
> results.
> 
> --
> Rod Taylor <rbt(at)rbt(dot)ca>
> 
> PGP Key: http://www.rbt.ca/rbtpub.asc
-- End of PGP section, PGP failed!

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

In response to

pgsql-hackers by date

Next:From: Merlin MoncureDate: 2003-03-06 19:02:21
Subject: Re: Aggregate "rollup"
Previous:From: Antti HaapalaDate: 2003-03-06 18:30:57
Subject: Re: TODO: DROP COLUMN .. CASCADE

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group