Re: Database design: Backwards-compatible field addition

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Database design: Backwards-compatible field addition
Date: 2008-06-18 12:18:07
Message-ID: 20080618121807.GC4010@merkur.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 18, 2008 at 02:04:14PM +0200, David wrote:

> 1) table1 becomes a view of an updated table, with a 'WHERE field4 IS
> NULL' clause.
>
> Problem with this is that some RDBMS (Postgresql specifically) don't
> let you run update statements on views.

Given 1) the view will be "fairly uncomplicated" and hence
"fairly straightforward" ON INSERT/UPDATE/DELETE rule can
likely be added to it allowing for an apparently writable
view.

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2008-06-18 12:20:07 Re: Database design: Storing app defaults
Previous Message David 2008-06-18 12:07:26 Database design: Data synchronization