Re: Changing the default value of an inherited column

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Changing the default value of an inherited column
Дата
Msg-id Pine.LNX.4.30.0103282309350.821-100000@peter.localdomain
обсуждение исходный текст
Ответ на Changing the default value of an inherited column  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Re: Changing the default value of an inherited column  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-hackers
Tom Lane writes:

> It seems that in pre-7.0 Postgres, this works:
>
> create table one(id int default 1, descr text);
> create table two(id int default 2, tag text) inherits (one);
>
> with the net effect that table "two" has just one "id" column with
> default value 2.

Although the liberty to do anything you want seems appealing at first, I
would think that allowing this is not correct from an OO point of view.
But given that our inheritance system actually has conceivably little
resemblance to real OO, I don't really care.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Re: [BUGS] Tests randomly failed
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [PORTS] pgmonitor and Solaris