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

Re: Updatable Views

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pdxpug(at)postgresql(dot)org
Subject: Re: Updatable Views
Date: 2007-11-28 05:01:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pdxpug
On Nov 27, 2007, at 11:00, Rich Shepard wrote:

>   The Douglas^2 book has only a couple of pages on views, and my  
> partner's
> research taught him that postgres does not support updatable views.  
> This
> surprises me.
>   Our application will need to support multiple locations. Some  
> users need
> to be restricted to viewing/adding/editing data for only a single  
> location,
> while other users are more interested in consolidated information.  
> We were
> thinking that each site could be presented to the user as a view with
> restrictions appropriate for his/her access level. But, that does  
> not seem
> to be an option.

Following up on what Jeff said, check out my OSCON presentation on  
using rules on views to simplify object-relational mapping:

>   Are there quick and easy ways to accomplish this with postgres?
> Apparently, MySQL5 fully supports views as functional as base tables.

MySQL's updatable views work great, as long as they are views of only  
a single table. At least, that was true last time I checked.



In response to


pdxpug by date

Next:From: Rich ShepardDate: 2007-11-28 14:08:01
Subject: Re: Updatable Views
Previous:From: Rich ShepardDate: 2007-11-27 20:04:52
Subject: Re: Updatable Views

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