Re: default values for views

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: default values for views
Дата
Msg-id 200204152306.g3FN6Ia03940@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: default values for views  (Neil Conway <nconway@klamath.dyndns.org>)
Ответы Re: default values for views  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Neil Conway wrote:
> On Mon, 15 Apr 2002 18:59:17 -0400 (EDT)
> "Bruce Momjian" <pgman@candle.pha.pa.us> wrote:
> > Neil Conway wrote:
> > > The attached patch allows views to have default values. You can't
> > > specify a default value within a CREATE VIEW statement, it must be
> > > done using ALTER TABLE ... ALTER COLUMN ... SET DEFAULT after the
> > > view has already been created. Most of the hard work was done by
> > > Tom Lane, I just patched pg_dump and updated the documentation.
> >
> > I am confused.  I didn't think we could insert into views.  Can we?
>
> No, but you can if you create a rule to handle the insertion for you
> properly.
>
> There is more discussion of this patch on -hackers, in the thread
> "rules and default values".

Oh, so somehow this patch interacts with the rule insertion code to
handle it.  OK.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  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

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: default values for views
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [patch] fe-connect.c doesn't handle EINTR correctly