Re: Cascaded Column Drop - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Cascaded Column Drop
Date
Msg-id 200209270400.g8R40l800977@candle.pha.pa.us
Whole thread Raw
In response to Re: Cascaded Column Drop  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Cascaded Column Drop
Re: Cascaded Column Drop
Re: Cascaded Column Drop
List pgsql-patches
Tom Lane wrote:
> Rod Taylor <rbt@rbt.ca> writes:
> > When a cascaded column drop is removing the last column, drop the table
> > instead.  Regression tests via domains.
>
> Is that a good idea, or should we refuse the drop entirely?  A table
> drop zaps a lot more stuff than a column drop.

I think we should refuse the drop.  It is just too strange.  You can
suggest if they want the column dropped, just drop the table.

> What I was actually wondering about after reading Tim's report was
> whether we could support zero-column tables, which would eliminate the
> need for the special case altogether.  I have not looked to see how
> extensive are the places that assume tuples have > 0 columns ...

Zero-width tables do sound interesting.  Is it somehow non-relational?

--
  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-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Cascaded Column Drop
Next
From: Tom Lane
Date:
Subject: Re: additional patch for contrib/tablefunc - added to