Re: [HACKERS] Well, then you keep your darn columns

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Well, then you keep your darn columns
Дата
Msg-id 26163.948739543@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Well, then you keep your darn columns  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Let's see: DROP COLUMN would have to mark the column invisible, remove
> any associated constraints (particularly NOT NULL) and indexes, and
> it'd be done.  The parser would then have to ignore the column when
> doing column name lookups or expansion of '*', and it would have to
> insert a NULL value for the column when transforming INSERT or UPDATE.
> And that'd be just about it.  I like it.

On further reflection I can think of a few other places that would have
to be taught to skip over "invisible" columns: COPY and pg_dump would,
and probably there are some others.  But it still seems like this is
a simple and robust scheme with considerable advantages, and many
fewer "I'm not sure how to do that" gaps in it.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Well, then you keep your darn columns
Следующее
От: Don Baccus
Дата:
Сообщение: Re: [HACKERS] Well, then you keep your darn columns