Re: drop column

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: drop column
Дата
Msg-id 20011019100043.B10169@svana.org
обсуждение исходный текст
Ответ на Re: drop column  (Keary Suska <hierophant@pcisys.net>)
Список pgsql-general
On Thu, Oct 18, 2001 at 12:03:35PM -0600, Keary Suska wrote:
> Unfortunately, Postgres' greatest shortcoming (IMHO) is the inability to
> change table definitions much after creation. To effect any column changes
> besides DEFAULT clauses and indexing (and a few other options), you have to
> drop and re-create the table.

Well, you can add and rename columns. What I tend to do is rename them to
unused_xx and then if I ever get around to reloading the database, I simply
exclude them.

But yeah, it would be nice. Anyone volunteering?

I think there are some discussions about this and basically it would require
allowing different rows in the same table to have different numbers of
fields. Adding to the end is easy because you can just fill in the nulls on
load.

--
Martijn van Oosterhout <kleptog@svana.org>
http://svana.org/kleptog/
> Magnetism, electricity and motion are like a three-for-two special offer:
> if you have two of them, the third one comes free.

В списке pgsql-general по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: VACUUM vs VACUUM ANALYZE
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: VACUUM vs VACUUM ANALYZE