Skip site navigation (1) Skip section navigation (2)

Re: default values for views

From: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: default values for views
Date: 2002-04-15 23:03:55
Message-ID: 20020415190355.61ab2036.nconway@klamath.dyndns.org (view raw or flat)
Thread:
Lists: pgsql-patches
On Mon, 15 Apr 2002 18:59:17 -0400 (EDT)
"Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)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".

Cheers,

Neil

-- 
Neil Conway <neilconway(at)rogers(dot)com>
PGP Key ID: DB3C29FC

In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2002-04-15 23:06:18
Subject: Re: default values for views
Previous:From: Nigel J. AndrewsDate: 2002-04-15 22:59:49
Subject: Re: Alter/update large tables - VERRRY annoying behaviour!

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group