Re: Column defaults fail with rules on view

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Column defaults fail with rules on view
Дата
Msg-id 20936.1063986819@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Column defaults fail with rules on view  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
Richard Huxton <dev@archonet.com> writes:
> On Friday 19 September 2003 16:04, Tom Lane wrote:
>> What Berend actually wants is to attach column defaults to the *view*,
>> so that they apply to an INSERT mentioning the view.  You can do this in
>> recent PG releases (7.3 for sure, not sure about 7.2) using ALTER TABLE
>> ... ADD DEFAULT.

> Am I right in thinking that *in theory* we should be able to "inherit" the
> defaults to the view automatically?

[shrug]  Maybe, in simple cases.  I'm not convinced it'd be especially
useful.  The defaults applicable to direct inserts into a table aren't
necessarily sensible for inserts via a view.

            regards, tom lane

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

Предыдущее
От: dschmidt@lexmark.com
Дата:
Сообщение:
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Rockets (was Re: PostgreSQL versus MySQL)