Re: [HACKERS] Happy column dropping

Bruce Momjian <pgman@candle.pha.pa.us>

From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Peter Eisentraut <peter_e@gmx.net>, PostgreSQL Development <pgsql-hackers@postgreSQL.org>
Date: 2000-01-23T04:26:32Z
Lists: pgsql-hackers
> [Charset ISO-8859-1 unsupported, filtering to ASCII...]
> > With caveats, it is now possible to drop columns from tables.
> > 
> > The implementation is based on copying the old table to a new one minus
> > the specified column. This procedure changes the oids of everyone
> > involved, so I was wondering if
> > a) this is a good reason to tell people to stop using oids as keys, or
> > b) if there is some way to keep the oids on both the records and the
> > pg_class entry.
> 
> Actually CLUSTER has the same problem, I think.  It may be even worse
> because it drops all indexes.  Can you take a look at that code too. 
> Some people have reported problems with it, while others are OK.  There
> is a cluster TODO mail file in the source tree.  It shows an actual bug
> that still exists, plus some other issues with cluster.
> 

I wonder if we should throw out a NOTICE when we drop some
characteristic of a table?

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026