Re: Problems With VIEWS - Mailing list pgsql-general

From Richard Broersma Jr
Subject Re: Problems With VIEWS
Date
Msg-id 62593.72984.qm@web31801.mail.mud.yahoo.com
Whole thread Raw
In response to Re: Problems With VIEWS  ("Jeanna Geier" <jgeier@apt-cafm.com>)
Responses Re: Problems With VIEWS  ("Jeanna Geier" <jgeier@apt-cafm.com>)
List pgsql-general
> 2007-01-10 16:45:33 ERROR:  cannot insert into a view
> 2007-01-10 16:45:33 HINT:  You need an unconditional ON INSERT DO INSTEAD
> rule.

Also, I see you have this field in your insert rule:

new.upgrade_date

but I see so upgrade_date in you view's definition.  What exactly do you intend to be inserted.
All of the New.[field_names] in the insert statement must be view fieldnames not table fieldnames.

Regards,
Richard Broersma Jr.

pgsql-general by date:

Previous
From: "Jeanna Geier"
Date:
Subject: Re: Problems With VIEWS
Next
From: "Chad Wagner"
Date:
Subject: Re: How does one perform a case-insenstive query on test or char fields